39 }
catch (
const jau::OutOfMemoryError &e) {
40 jau::jni::raise_java_exception(env, e, file, line);
41 }
catch (
const jau::InternalError &e) {
42 jau::jni::raise_java_exception(env, e, file, line);
43 }
catch (
const jau::NullPointerException &e) {
44 jau::jni::raise_java_exception(env, e, file, line);
45 }
catch (
const jau::IllegalArgumentException &e) {
46 jau::jni::raise_java_exception(env, e, file, line);
47 }
catch (
const jau::IllegalStateException &e) {
48 jau::jni::raise_java_exception(env, e, file, line);
49 }
catch (
const jau::UnsupportedOperationException &e) {
50 jau::jni::raise_java_exception(env, e, file, line);
51 }
catch (
const jau::IndexOutOfBoundsException &e) {
52 jau::jni::raise_java_exception(env, e, file, line);
53 }
catch (
const jau::RuntimeException &e) {
54 jau::jni::raise_java_exception(env, e, file, line);
55 }
catch (
const std::bad_alloc &e) {
56 jau::jni::raise_java_exception(env, e, file, line);
57 }
catch (
const std::runtime_error &e) {
58 jau::jni::raise_java_exception(env, e, file, line);
59 }
catch (
const std::invalid_argument &e) {
60 jau::jni::raise_java_exception(env, e, file, line);
61 }
catch (
const std::exception &e) {
62 jau::jni::raise_java_exception(env, e, file, line);
63 }
catch (
const std::string &msg) {
64 jau::jni::print_native_caught_exception_fwd2java(msg, file, line);
65 env->ThrowNew(env->FindClass(
"java/lang/Error"), msg.c_str());
66 }
catch (
const char *msg) {
67 jau::jni::print_native_caught_exception_fwd2java(msg, file, line);
68 env->ThrowNew(env->FindClass(
"java/lang/Error"), msg);
static std::string _unknown_exception_type_msg("Unknown exception type")
Author: Sven Gothel sgothel@jausoft.com Copyright (c) 2022 Gothel Software e.K.
void rethrow_and_raise_java_exception_impl(JNIEnv *env, const char *file, int line)
Author: Sven Gothel sgothel@jausoft.com Copyright (c) 2022 Gothel Software e.K.