40 }
catch (
const jau::OutOfMemoryError &e) {
41 jau::jni::raise_java_exception(env, e, file, line);
42 }
catch (
const jau::InternalError &e) {
43 jau::jni::raise_java_exception(env, e, file, line);
44 }
catch (
const jau::NullPointerException &e) {
45 jau::jni::raise_java_exception(env, e, file, line);
46 }
catch (
const jau::IllegalArgumentError &e) {
47 jau::jni::raise_java_exception(env, e, file, line);
48 }
catch (
const jau::IllegalStateError &e) {
49 jau::jni::raise_java_exception(env, e, file, line);
50 }
catch (
const jau::UnsupportedOperationException &e) {
51 jau::jni::raise_java_exception(env, e, file, line);
52 }
catch (
const jau::IndexOutOfBoundsError &e) {
53 jau::jni::raise_java_exception(env, e, file, line);
54 }
catch (
const jau::RuntimeExceptionBase &e) {
55 jau::jni::raise_java_exception(env, e, file, line);
56 }
catch (
const jau::ExceptionBase &e) {
57 jau::jni::raise_java_exception(env, e, file, line);
58 }
catch (
const std::bad_alloc &e) {
59 jau::jni::raise_java_exception(env, e, file, line);
60 }
catch (
const std::runtime_error &e) {
61 jau::jni::raise_java_exception(env, e, file, line);
62 }
catch (
const std::invalid_argument &e) {
63 jau::jni::raise_java_exception(env, e, file, line);
64 }
catch (
const std::exception &e) {
65 jau::jni::raise_java_exception(env, e, file, line);
66 }
catch (
const std::string &msg) {
67 jau::jni::print_native_caught_exception_fwd2java(msg, file, line);
68 env->ThrowNew(env->FindClass(
"java/lang/Error"), msg.c_str());
69 }
catch (
const char *msg) {
70 jau::jni::print_native_caught_exception_fwd2java(msg, file, line);
71 env->ThrowNew(env->FindClass(
"java/lang/Error"), msg);