Class NestedSQLException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
com.ibatis.common.jdbc.exception.NestedSQLException
All Implemented Interfaces:
Serializable, Iterable<Throwable>

public class NestedSQLException extends SQLException
Class to allow passing an Exception with the original SQLException.
See Also:
  • Constructor Details

    • NestedSQLException

      public NestedSQLException(String msg)
      Constructor from java.sql.SQLException
      Parameters:
      msg - - the message for the exception
      See Also:
    • NestedSQLException

      public NestedSQLException(String reason, String SQLState)
      Constructor from java.sql.SQLException
      Parameters:
      reason - - the reason for the exception
      SQLState - - the SQLState
      See Also:
    • NestedSQLException

      public NestedSQLException(String reason, String SQLState, int vendorCode)
      Constructor from java.sql.SQLException
      Parameters:
      reason - - the reason for the exception
      SQLState - - the SQLState
      vendorCode - - a vendor supplied code to go w/ the message
      See Also:
    • NestedSQLException

      public NestedSQLException(String msg, Throwable cause)
      Constructor from java.sql.SQLException with added nested exception
      Parameters:
      msg - - the message for the exception
      cause - - the cause of the exception
    • NestedSQLException

      public NestedSQLException(String reason, String SQLState, Throwable cause)
      Constructor from java.sql.SQLException with added nested exception
      Parameters:
      reason - - the reason for the exception
      SQLState - - the SQLState
      cause - - the cause of the exception
      See Also:
    • NestedSQLException

      public NestedSQLException(String reason, String SQLState, int vendorCode, Throwable cause)
      Constructor from java.sql.SQLException with added nested exception
      Parameters:
      reason - - the reason for the exception
      SQLState - - the SQLState
      vendorCode - - a vendor supplied code to go w/ the message
      cause - - the cause of the exception
    • NestedSQLException

      public NestedSQLException(Throwable cause)
      Constructor from java.sql.SQLException with added nested exception
      Parameters:
      cause - - the cause of the exception