summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2022-07-07 15:22:27 +0200
committerSven Gothel <[email protected]>2022-07-07 15:22:27 +0200
commita675295c1ce116cc26fca977787612aa20d713e1 (patch)
treea64afc8e5e17798037393924ea2e484398689a7b /java
parent15e542dc2422bd8adcd8f3ae211837c94aafd16d (diff)
BTFactory: Fix exception messages
Diffstat (limited to 'java')
-rw-r--r--java/org/direct_bt/BTFactory.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/org/direct_bt/BTFactory.java b/java/org/direct_bt/BTFactory.java
index 59e4c9a4..ff793cb1 100644
--- a/java/org/direct_bt/BTFactory.java
+++ b/java/org/direct_bt/BTFactory.java
@@ -206,7 +206,7 @@ public class BTFactory {
public static void checkInitialized() {
if( null == initializedID.get() ) {
- throw new IllegalStateException("BluetoothFactory not initialized.");
+ throw new IllegalStateException("Direct-BT not initialized.");
}
}
public static boolean isInitialized() {
@@ -216,7 +216,7 @@ public class BTFactory {
private static synchronized void initLibrary(final ImplementationIdentifier id) {
if( null != initializedID.get() ) {
if( id != initializedID.get() ) {
- throw new IllegalStateException("BluetoothFactory already initialized with "+initializedID.get()+", can't override by "+id);
+ throw new IllegalStateException("Direct-BT already initialized with "+initializedID.get()+", can't override by "+id);
}
return;
}