|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception com.almworks.sqlite4java.SQLiteException
public class SQLiteException
SQLiteException is thrown whenever SQLite cannot execute an operation and returns an error code.
Error codes can be compared against SQLiteConstants
.
It's safe to rollback the transaction when SQLiteException is caught.
Constructor Summary | |
---|---|
SQLiteException(int errorCode,
java.lang.String errorMessage)
Creates an instance of SQLiteException. |
|
SQLiteException(int errorCode,
java.lang.String errorMessage,
java.lang.Throwable cause)
Creates an instance of SQLiteException. |
Method Summary | |
---|---|
int |
getBaseErrorCode()
Gets base error code returned by SQLite. |
int |
getErrorCode()
Gets the error code returned by SQLite. |
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 SQLiteException(int errorCode, java.lang.String errorMessage)
errorCode
- codes are defined in SQLiteConstants
errorMessage
- optional error messagepublic SQLiteException(int errorCode, java.lang.String errorMessage, java.lang.Throwable cause)
errorCode
- codes are defined in SQLiteConstants
errorMessage
- optional error messagecause
- error causeMethod Detail |
---|
public int getErrorCode()
public int getBaseErrorCode()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |