public class InconsistentDatabaseStateException extends IOException
However if the database is opened in read-only mode, and the Database cannot determine a way to re-open it in "rw" mode to re-apply the commit, then this exception will be thrown.
The correct way to handle this exception is to explicitly re-open the database in "rw" mode - to allow the commit to be applied, and then close it and re-open it in "r" mode as originally intended.
If you absolutely cannot open the database in "rw" mode then you must open it in "r" mode specifying that the commit operation should be ignored.
Constructor and Description |
---|
InconsistentDatabaseStateException() |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString