com.almworks.sqlite4java
Class SQLiteBusyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.almworks.sqlite4java.SQLiteException
com.almworks.sqlite4java.SQLiteBusyException
- All Implemented Interfaces:
- java.io.Serializable
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.
- Author:
- Igor Sereda
- See Also:
- sqlite3_busy_handler,
Response To Errors Within A Transaction,
Serialized Form
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 |
SQLiteBusyException
public SQLiteBusyException(int errorCode,
java.lang.String errorMessage)