Package 

Class DefaultDatabaseErrorHandler

  • 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
    The specified DatabaseErrorHandler is used to handle database corruption errors, if they occur.

    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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait