Interface DatabaseErrorHandler

  • All Implemented Interfaces:

    
    public interface DatabaseErrorHandler
    
                        

    An interface to let apps define an action to take when database corruption is detected.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void onCorruption(SQLiteDatabase dbObj, SQLiteException exception) The method invoked when database corruption is detected.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • onCorruption

         abstract void onCorruption(SQLiteDatabase dbObj, SQLiteException exception)

        The method invoked when database corruption is detected.

        Parameters:
        dbObj - the SQLiteDatabase object representing the database on which corruption is detected.
        exception - the exception reported by sqlite that indicated the database was corrupted.