Skip to content

Commit e506160

Browse files
committed
DbExceptionListener javadocs
1 parent 888f539 commit e506160

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

objectbox-java/src/main/java/io/objectbox/exception/DbExceptionListener.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@
1616

1717
package io.objectbox.exception;
1818

19+
/**
20+
* Listener for exceptions occurring during database operations.
21+
* Set via {@link io.objectbox.BoxStore#setDbExceptionListener(DbExceptionListener)}.
22+
*/
1923
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+
*/
2030
void onDbException(Exception e);
2131
}

0 commit comments

Comments
 (0)