From 96ced0311e42ca5dc7d4c4f15a2267bdb3f4281f Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Tue, 12 Jan 2010 15:18:14 -0800 Subject: android-2.1_r1 snapshot --- libnativehelper/include/nativehelper/JNIHelp.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libnativehelper/include/nativehelper') 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); -- cgit v1.2.3