summaryrefslogtreecommitdiffstats
path: root/libnativehelper/include/nativehelper
diff options
context:
space:
mode:
Diffstat (limited to 'libnativehelper/include/nativehelper')
-rw-r--r--libnativehelper/include/nativehelper/JNIHelp.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libnativehelper/include/nativehelper/JNIHelp.h b/libnativehelper/include/nativehelper/JNIHelp.h
index 3982797c8..698cba738 100644
--- a/libnativehelper/include/nativehelper/JNIHelp.h
+++ b/libnativehelper/include/nativehelper/JNIHelp.h
@@ -53,7 +53,12 @@ int jniRegisterNativeMethods(C_JNIEnv* env, const char* className,
int jniThrowException(C_JNIEnv* env, const char* className, const char* msg);
/*
- * Throw a java.IO.IOException, generating the message from errno.
+ * Throw a java.lang.RuntimeException, with an optional message.
+ */
+int jniThrowRuntimeException(JNIEnv* env, const char* msg);
+
+/*
+ * Throw a java.io.IOException, generating the message from errno.
*/
int jniThrowIOException(C_JNIEnv* env, int errnum);