Class SQLiteBusyException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.almworks.sqlite4java.SQLiteException
              extended by com.almworks.sqlite4java.SQLiteBusyException
All Implemented Interfaces:

public class SQLiteBusyException
extends SQLiteException

SQLiteBusyException is a special exception that is thrown whenever SQLite returns SQLITE_BUSY or SQLITE_IOERR_BLOCKED error code. These codes mean that the current operation cannot proceed because the required resources are locked.

When a timeout is set via SQLiteConnection.setBusyTimeout(long), SQLite will attempt to get the lock during the specified timeout before returning this error.

It is recommended to rollback the transaction when this exception is received. However, SQLite tries to make sure that only the last statement failed and it's possible to retry that statement within the current transaction.

Igor Sereda
See Also:
sqlite3_busy_handler, Response To Errors Within A Transaction, Serialized Form

Constructor Summary
SQLiteBusyException(int errorCode, java.lang.String errorMessage)
Method Summary
Methods inherited from class com.almworks.sqlite4java.SQLiteException
getBaseErrorCode, getErrorCode
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public SQLiteBusyException(int errorCode,
                           java.lang.String errorMessage)