Class SqlJetException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    SqlJetIOException

    public class SqlJetException
    extends java.lang.Exception
    SqlJet exception wraps error code SqlJetErrorCode
    Author:
    TMate Software Ltd., Sergey Scherbina (sergey.scherbina@gmail.com)
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SqlJetErrorCode getErrorCode()
      Get error code.
      java.lang.String getMessage()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 code SqlJetErrorCode.MISUSE and given message.
        Parameters:
        message - the message string.
      • SqlJetException

        public SqlJetException​(java.lang.Throwable cause)
        Create SqlJet exception with error code SqlJetErrorCode.MISUSE and given reason.
        Parameters:
        cause - the reason.
      • SqlJetException

        public SqlJetException​(java.lang.String message,
                               java.lang.Throwable cause)
        Create SqlJet exception with error code SqlJetErrorCode.MISUSE and given message and reason.
        Parameters:
        message - the message string
        cause - the reason.
    • Method Detail

      • getErrorCode

        public SqlJetErrorCode getErrorCode()
        Get error code.
        Returns:
        the errorCode
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable