Package 

Interface DatabaseErrorHandler


  • 
    public interface DatabaseErrorHandler
    
                        

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

    • 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
    • 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 corruptionis detected.
        exception - the exception reported by sqlite that indicated the database was corrupted.