aboutsummaryrefslogtreecommitdiffstats
path: root/java/jni/helper_base.hpp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-07-29 22:55:03 +0200
committerSven Gothel <[email protected]>2020-07-29 22:55:03 +0200
commit27c8ebdee3279b29cd6773bd6a8eed8542c2c1d3 (patch)
tree15e448c204897267481ea5c28f39d01f36e83045 /java/jni/helper_base.hpp
parenta9be7a6fd8de3f76e18c6a651621c2739a6dc669 (diff)
JNI: Complete C++ to Java Exception mapping
Diffstat (limited to 'java/jni/helper_base.hpp')
-rw-r--r--java/jni/helper_base.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/java/jni/helper_base.hpp b/java/jni/helper_base.hpp
index 18ae8679..0fa56095 100644
--- a/java/jni/helper_base.hpp
+++ b/java/jni/helper_base.hpp
@@ -241,6 +241,18 @@ jobject convert_vector_sharedptr_to_jarraylist(JNIEnv *env, std::vector<std::sha
}
void raise_java_exception(JNIEnv *env, std::exception &e);
+void raise_java_exception(JNIEnv *env, std::runtime_error &e);
+void raise_java_exception(JNIEnv *env, direct_bt::RuntimeException &e);
+void raise_java_exception(JNIEnv *env, direct_bt::InternalError &e);
+void raise_java_exception(JNIEnv *env, direct_bt::NullPointerException &e);
+void raise_java_exception(JNIEnv *env, direct_bt::IllegalArgumentException &e);
+void raise_java_exception(JNIEnv *env, std::invalid_argument &e);
+void raise_java_exception(JNIEnv *env, direct_bt::IllegalStateException &e);
+void raise_java_exception(JNIEnv *env, direct_bt::UnsupportedOperationException &e);
+void raise_java_exception(JNIEnv *env, direct_bt::IndexOutOfBoundsException &e);
+void raise_java_exception(JNIEnv *env, std::bad_alloc &e);
+void raise_java_exception(JNIEnv *env, direct_bt::BluetoothException &e);
+
void raise_java_runtime_exception(JNIEnv *env, std::runtime_error &e);
void raise_java_runtime_exception(JNIEnv *env, direct_bt::RuntimeException &e);
void raise_java_oom_exception(JNIEnv *env, std::bad_alloc &e);