Package org.tmatesoft.sqljet.core
Class SqlJetException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.tmatesoft.sqljet.core.SqlJetException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
SqlJetIOException
public class SqlJetException extends java.lang.ExceptionSqlJet exception wraps error codeSqlJetErrorCode- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SqlJetException(java.lang.String message)Create SqlJet exception with error codeSqlJetErrorCode.MISUSEand given message.SqlJetException(java.lang.String message, java.lang.Throwable cause)Create SqlJet exception with error codeSqlJetErrorCode.MISUSEand given message and reason.SqlJetException(java.lang.Throwable cause)Create SqlJet exception with error codeSqlJetErrorCode.MISUSEand given reason.SqlJetException(SqlJetErrorCode errorCode)Create SqlJet exception with given error code.SqlJetException(SqlJetErrorCode errorCode, java.lang.String message)Create SqlJet exception with given error code and message.SqlJetException(SqlJetErrorCode errorCode, java.lang.String message, java.lang.Throwable cause)Create SqlJet exception with given error code and reason.SqlJetException(SqlJetErrorCode errorCode, java.lang.Throwable cause)Create SqlJet exception with given error code and reason.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlJetErrorCodegetErrorCode()Get error code.java.lang.StringgetMessage()java.lang.StringtoString()
-
-
-
Constructor Detail
-
SqlJetException
public SqlJetException(SqlJetErrorCode errorCode)
Create SqlJet exception with given error code.- Parameters:
errorCode- the error code.
-
SqlJetException
public SqlJetException(SqlJetErrorCode errorCode, java.lang.String message)
Create SqlJet exception with given error code and message.- Parameters:
errorCode- the error code.message- the message string.
-
SqlJetException
public SqlJetException(SqlJetErrorCode errorCode, java.lang.Throwable cause)
Create SqlJet exception with given error code and reason.- Parameters:
errorCode- the error code.cause- the reason.
-
SqlJetException
public SqlJetException(SqlJetErrorCode errorCode, java.lang.String message, java.lang.Throwable cause)
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
public SqlJetException(java.lang.String message)
Create SqlJet exception with error codeSqlJetErrorCode.MISUSEand given message.- Parameters:
message- the message string.
-
SqlJetException
public SqlJetException(java.lang.Throwable cause)
Create SqlJet exception with error codeSqlJetErrorCode.MISUSEand given reason.- Parameters:
cause- the reason.
-
SqlJetException
public SqlJetException(java.lang.String message, java.lang.Throwable cause)Create SqlJet exception with error codeSqlJetErrorCode.MISUSEand given message and reason.- Parameters:
message- the message stringcause- the reason.
-
-
Method Detail
-
getErrorCode
public SqlJetErrorCode getErrorCode()
Get error code.- Returns:
- the errorCode
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Throwable
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
-