diff options
| author | The Android Open Source Project <initial-contribution@android.com> | 2010-01-12 15:18:14 -0800 |
|---|---|---|
| committer | The Android Open Source Project <initial-contribution@android.com> | 2010-01-12 15:18:14 -0800 |
| commit | 96ced0311e42ca5dc7d4c4f15a2267bdb3f4281f (patch) | |
| tree | a932c0f6e2949f7f6f297ad19a868765d0e2f17e /libnativehelper/include/nativehelper | |
| parent | 72e93344b4d1ffc71e9c832ec23de0657e5b04a5 (diff) | |
| download | android_dalvik-96ced0311e42ca5dc7d4c4f15a2267bdb3f4281f.tar.gz android_dalvik-96ced0311e42ca5dc7d4c4f15a2267bdb3f4281f.tar.bz2 android_dalvik-96ced0311e42ca5dc7d4c4f15a2267bdb3f4281f.zip | |
android-2.1_r1 snapshot
Diffstat (limited to 'libnativehelper/include/nativehelper')
| -rw-r--r-- | libnativehelper/include/nativehelper/JNIHelp.h | 7 |
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); |
