1 parent 888f539 commit e506160Copy full SHA for e506160
1 file changed
objectbox-java/src/main/java/io/objectbox/exception/DbExceptionListener.java
@@ -16,6 +16,16 @@
16
17
package io.objectbox.exception;
18
19
+/**
20
+ * Listener for exceptions occurring during database operations.
21
+ * Set via {@link io.objectbox.BoxStore#setDbExceptionListener(DbExceptionListener)}.
22
+ */
23
public interface DbExceptionListener {
24
+ /**
25
+ * Called when an exception is thrown during a database operation.
26
+ * Do NOT throw exceptions in this method: behavior is undefined, e.g. all thrown exceptions may be ignored.
27
+ *
28
+ * @param e the exception occurred during a database operation
29
30
void onDbException(Exception e);
31
}
0 commit comments