Class RuntimeSQLException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.ibatis.common.jdbc.exception.RuntimeSQLException
All Implemented Interfaces:
Serializable

public class RuntimeSQLException extends RuntimeException
Unchecked exception to allow passing an Exception with the original SQLException.
See Also:
  • Constructor Details

    • RuntimeSQLException

      public RuntimeSQLException()
      Default constructor.
    • RuntimeSQLException

      public RuntimeSQLException(String msg)
      Constructor to pass along a message.
      Parameters:
      msg - - the message
    • RuntimeSQLException

      public RuntimeSQLException(SQLException sqlException)
      Constructor to pass along another exception.
      Parameters:
      sqlException - - the exception
    • RuntimeSQLException

      public RuntimeSQLException(String msg, SQLException sqlException)
      Constructor to pass along a message and an exception.
      Parameters:
      msg - - the message
      sqlException - - the exception
  • Method Details

    • getSQLState

      public String getSQLState()
      Getter for the SQL State.
      Returns:
      - the state
    • getErrorCode

      public int getErrorCode()
      Getter for the error code.
      Returns:
      - the error code
    • getNextException

      public SQLException getNextException()
      Get the next exception in the chain.
      Returns:
      - the next exception
    • setNextException

      public void setNextException(SQLException ex)
      Set the next exception in the chain.
      Parameters:
      ex - - the next exception