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
所有已实现接口:
java.io.Serializable

public class NestedSQLException
extends java.sql.SQLException

Class to allow passing an Exception with the original SQLException

另请参见:
Serialized Form

构造器摘要
NestedSQLException(java.lang.String msg)
          Constructor from java.sql.SQLException
NestedSQLException(java.lang.String reason, java.lang.String SQLState)
          Constructor from java.sql.SQLException
NestedSQLException(java.lang.String reason, java.lang.String SQLState, int vendorCode)
          Constructor from java.sql.SQLException
NestedSQLException(java.lang.String reason, java.lang.String SQLState, int vendorCode, java.lang.Throwable cause)
          Constructor from java.sql.SQLException with added nested exception
NestedSQLException(java.lang.String reason, java.lang.String SQLState, java.lang.Throwable cause)
          Constructor from java.sql.SQLException with added nested exception
NestedSQLException(java.lang.String msg, java.lang.Throwable cause)
          Constructor from java.sql.SQLException with added nested exception
NestedSQLException(java.lang.Throwable cause)
          Constructor from java.sql.SQLException with added nested exception
 
方法摘要
 
类方法继承: java.sql.SQLException
getErrorCode, getNextException, getSQLState, setNextException
 
类方法继承: java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
类方法继承: java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造器详细信息

NestedSQLException

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

参数:
msg - - the message for the exception
另请参见:
SQLException

NestedSQLException

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

参数:
reason - - the reason for the exception
SQLState - - the SQLState
另请参见:
SQLException

NestedSQLException

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

参数:
reason - - the reason for the exception
SQLState - - the SQLState
vendorCode - - a vendor supplied code to go w/ the message
另请参见:
SQLException

NestedSQLException

public NestedSQLException(java.lang.String msg,
                          java.lang.Throwable cause)
Constructor from java.sql.SQLException with added nested exception

参数:
msg - - the message for the exception
cause - - the cause of the exception

NestedSQLException

public NestedSQLException(java.lang.String reason,
                          java.lang.String SQLState,
                          java.lang.Throwable cause)
Constructor from java.sql.SQLException with added nested exception

参数:
reason - - the reason for the exception
SQLState - - the SQLState
cause - - the cause of the exception
另请参见:
SQLException

NestedSQLException

public NestedSQLException(java.lang.String reason,
                          java.lang.String SQLState,
                          int vendorCode,
                          java.lang.Throwable cause)
Constructor from java.sql.SQLException with added nested exception

参数:
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(java.lang.Throwable cause)
Constructor from java.sql.SQLException with added nested exception

参数:
cause - - the cause of the exception