aboutsummaryrefslogtreecommitdiffstats
path: root/java/jni/helper_base.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'java/jni/helper_base.cxx')
-rw-r--r--java/jni/helper_base.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/jni/helper_base.cxx b/java/jni/helper_base.cxx
index ceac1c78..a995718d 100644
--- a/java/jni/helper_base.cxx
+++ b/java/jni/helper_base.cxx
@@ -46,7 +46,7 @@ jobject get_bluetooth_type(JNIEnv *env, const char *field_name)
return result;
}
-void raise_java_exception(JNIEnv *env, const direct_bt::BluetoothException &e, const char* file, int line) {
+void raise_java_exception(JNIEnv *env, const direct_bt::BTException &e, const char* file, int line) {
jau::print_native_caught_exception_fwd2java(e, file, line);
env->ThrowNew(env->FindClass("org/tinyb/BluetoothException"), e.what());
}
@@ -78,7 +78,7 @@ void rethrow_and_raise_java_exception_impl(JNIEnv *env, const char* file, int li
jau::raise_java_exception(env, e, file, line);
} catch (const jau::IndexOutOfBoundsException &e) {
jau::raise_java_exception(env, e, file, line);
- } catch (const direct_bt::BluetoothException &e) {
+ } catch (const direct_bt::BTException &e) {
raise_java_exception(env, e, file, line);
} catch (const tinyb::BluetoothException &e) {
raise_java_exception(env, e, file, line);