Package com.ibatis.common.jdbc.exception
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>
Class to allow passing an Exception with the original SQLException.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNestedSQLException
(String msg) Constructor from java.sql.SQLExceptionNestedSQLException
(String reason, String SQLState) Constructor from java.sql.SQLExceptionNestedSQLException
(String reason, String SQLState, int vendorCode) Constructor from java.sql.SQLExceptionNestedSQLException
(String reason, String SQLState, int vendorCode, Throwable cause) Constructor from java.sql.SQLException with added nested exceptionNestedSQLException
(String reason, String SQLState, Throwable cause) Constructor from java.sql.SQLException with added nested exceptionNestedSQLException
(String msg, Throwable cause) Constructor from java.sql.SQLException with added nested exceptionNestedSQLException
(Throwable cause) Constructor from java.sql.SQLException with added nested exception -
Method Summary
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextException
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
NestedSQLException
Constructor from java.sql.SQLException- Parameters:
msg
- - the message for the exception- See Also:
-
NestedSQLException
-
NestedSQLException
-
NestedSQLException
-
NestedSQLException
-
NestedSQLException
Constructor from java.sql.SQLException with added nested exception- Parameters:
reason
- - the reason for the exceptionSQLState
- - the SQLStatevendorCode
- - a vendor supplied code to go w/ the messagecause
- - the cause of the exception
-
NestedSQLException
Constructor from java.sql.SQLException with added nested exception- Parameters:
cause
- - the cause of the exception
-