-
- All Implemented Interfaces:
-
net.zetetic.database.DatabaseErrorHandler
public final class DefaultDatabaseErrorHandler implements DatabaseErrorHandler
Default class used to define the action to take when database corruption is reported by sqlite.
An application can specify an implementation of DatabaseErrorHandler on the following:
- openOrCreateDatabase
- openDatabase
If null is specified for the DatabaseErrorHandler param in the above calls, this class is used as the default DatabaseErrorHandler.
-
-
Method Summary
Modifier and Type Method Description void
onCorruption(SQLiteDatabase dbObj, SQLiteException exception)
defines the default method to be invoked when database corruption is detected. -
-
Method Detail
-
onCorruption
void onCorruption(SQLiteDatabase dbObj, SQLiteException exception)
defines the default method to be invoked when database corruption is detected.
- Parameters:
dbObj
- the SQLiteDatabase object representing the database on which corruptionis detected.
-
-
-
-