diff options
author | Sven Gothel <[email protected]> | 2021-10-04 20:59:18 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-10-04 20:59:18 +0200 |
commit | f0251161fccc05d439cd06086a0e12aea7d930a8 (patch) | |
tree | 7fcbf2f14c4f4643b31754464cc3a7ce146fab40 /include/jau/jni | |
parent | 98b339449b1ef7bce7f9092226d886aa23dcd6c8 (diff) |
Have OutOfMemoryError being derived from std::bad_alloc (not std::exception); Generalize our Exception structure w/ ExceptionBase
Diffstat (limited to 'include/jau/jni')
-rw-r--r-- | include/jau/jni/helper_jni.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/jau/jni/helper_jni.hpp b/include/jau/jni/helper_jni.hpp index 78251a2..452b462 100644 --- a/include/jau/jni/helper_jni.hpp +++ b/include/jau/jni/helper_jni.hpp @@ -71,6 +71,8 @@ namespace jau { */ void java_exception_check_and_throw(JNIEnv *env, const char* file, int line); + void print_native_caught_exception_fwd2java(const jau::OutOfMemoryError &e, const char* file, int line); + void print_native_caught_exception_fwd2java(const jau::RuntimeException &e, const char* file, int line); void print_native_caught_exception_fwd2java(const std::exception &e, const char* file, int line); void print_native_caught_exception_fwd2java(const std::string &msg, const char* file, int line); void print_native_caught_exception_fwd2java(const char * cmsg, const char* file, int line); |