Skip to content

Commit bd2cee8

Browse files
committed
added DbShutdownException
1 parent 841b1f7 commit bd2cee8

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package io.objectbox.exception;
2+
3+
/**
4+
* Thrown when an error occurred that requires the DB to shutdown.
5+
* This may be an I/O error for example.
6+
* Regular operations won't be possible anymore.
7+
* To handle that situation you could exit the app or try to reopen the store.
8+
*/
9+
public class DbShutdownException extends DbException {
10+
public DbShutdownException(String message) {
11+
super(message);
12+
}
13+
14+
public DbShutdownException(String message, int errorCode) {
15+
super(message, errorCode);
16+
}
17+
18+
}

0 commit comments

Comments
 (0)