Skip to content

Commit 8689d4a

Browse files
author
FITOR
committed
test commit
1 parent c72d55a commit 8689d4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/resources/org/bytedeco/javacpp/jniTemplates/JNIExceptionHandler.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ static JavaCPP_noinline jclass JavaCPP_mapJavaExceptions(JNIEnv *env, const std:
1111
}
1212
return env->FindClass("java/lang/Exception");
1313
}
14-
// Function creates a jobject (extends Throwable) from the passed std::exception
14+
15+
// Function creates a jobject (extends Throwable) from the passed std::exception (with causes)
1516
static JavaCPP_noinline jthrowable JavaCPP_createJavaException(JNIEnv *env, const std::exception& e, jthrowable cause = nullptr) {
1617
jclass exClass = JavaCPP_mapCustomExceptions(env, e);
1718
exClass = exClass ? exClass : JavaCPP_mapJavaExceptions(env, e);

0 commit comments

Comments
 (0)