com.ibatis.common.jdbc.exception
Class NestedSQLException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.sql.SQLException
              extended by com.ibatis.common.jdbc.exception.NestedSQLException
All Implemented Interfaces:
Serializable

public class NestedSQLException
extends SQLException

Class to allow passing an Exception with the original SQLException

See Also:
Serialized Form

Constructor Summary
NestedSQLException(String msg)
          Constructor from java.sql.SQLException
NestedSQLException(String reason, String SQLState)
          Constructor from java.sql.SQLException
NestedSQLException(String reason, String SQLState, int vendorCode)
          Constructor from java.sql.SQLException
NestedSQLException(String reason, String SQLState, int vendorCode, Throwable cause)
          Constructor from java.sql.SQLException with added nested exception
NestedSQLException(String reason, String SQLState, Throwable cause)
          Constructor from java.sql.SQLException with added nested exception
NestedSQLException(String msg, Throwable cause)
          Constructor from java.sql.SQLException with added nested exception
NestedSQLException(Throwable cause)
          Constructor from java.sql.SQLException with added nested exception
 
Method Summary
 
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NestedSQLException

public NestedSQLException(String msg)
Constructor from java.sql.SQLException

Parameters:
msg - - the message for the exception
See Also:
SQLException

NestedSQLException

public NestedSQLException(String reason,
                          String SQLState)
Constructor from java.sql.SQLException

Parameters:
reason - - the reason for the exception
SQLState - - the SQLState
See Also:
SQLException

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:
SQLException

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:
SQLException

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


Copyright © 2010. All Rights Reserved.