Package org.tmatesoft.sqljet.core
Class SqlJetException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.tmatesoft.sqljet.core.SqlJetException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SqlJetIOException
SqlJet exception wraps error code
SqlJetErrorCode
- Author:
- TMate Software Ltd., Sergey Scherbina (sergey.scherbina@gmail.com)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSqlJetException
(String message) Create SqlJet exception with error codeSqlJetErrorCode.MISUSE
and given message.SqlJetException
(String message, Throwable cause) Create SqlJet exception with error codeSqlJetErrorCode.MISUSE
and given message and reason.SqlJetException
(Throwable cause) Create SqlJet exception with error codeSqlJetErrorCode.MISUSE
and given reason.SqlJetException
(SqlJetErrorCode errorCode) Create SqlJet exception with given error code.SqlJetException
(SqlJetErrorCode errorCode, String message) Create SqlJet exception with given error code and message.SqlJetException
(SqlJetErrorCode errorCode, String message, Throwable cause) Create SqlJet exception with given error code and reason.SqlJetException
(SqlJetErrorCode errorCode, Throwable cause) Create SqlJet exception with given error code and reason. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
SqlJetException
Create SqlJet exception with given error code.- Parameters:
errorCode
- the error code.
-
SqlJetException
Create SqlJet exception with given error code and message.- Parameters:
errorCode
- the error code.message
- the message string.
-
SqlJetException
Create SqlJet exception with given error code and reason.- Parameters:
errorCode
- the error code.cause
- the reason.
-
SqlJetException
Create SqlJet exception with given error code and reason.- Parameters:
errorCode
- the error code.message
- the error message.cause
- exception that caused this exception.
-
SqlJetException
Create SqlJet exception with error codeSqlJetErrorCode.MISUSE
and given message.- Parameters:
message
- the message string.
-
SqlJetException
Create SqlJet exception with error codeSqlJetErrorCode.MISUSE
and given reason.- Parameters:
cause
- the reason.
-
SqlJetException
Create SqlJet exception with error codeSqlJetErrorCode.MISUSE
and given message and reason.- Parameters:
message
- the message stringcause
- the reason.
-
-
Method Details
-
getErrorCode
Get error code.- Returns:
- the errorCode
-
toString
-
getMessage
- Overrides:
getMessage
in classThrowable
-