com.ibatis.common.jdbc.exception
Class NestedSQLException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.sql.SQLException
              extended bycom.ibatis.common.jdbc.exception.NestedSQLException
All Implemented Interfaces:
java.io.Serializable

public class NestedSQLException
extends java.sql.SQLException

See Also:
Serialized Form

Field Summary
private  java.lang.Throwable cause
           
private static java.lang.String CAUSED_BY
           
 
Fields inherited from class java.sql.SQLException
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
NestedSQLException(java.lang.String msg)
          Constructor
NestedSQLException(java.lang.String reason, java.lang.String SQLState)
           
NestedSQLException(java.lang.String reason, java.lang.String SQLState, int vendorCode)
           
NestedSQLException(java.lang.String reason, java.lang.String SQLState, int vendorCode, java.lang.Throwable cause)
           
NestedSQLException(java.lang.String reason, java.lang.String SQLState, java.lang.Throwable cause)
           
NestedSQLException(java.lang.String msg, java.lang.Throwable cause)
           
NestedSQLException(java.lang.Throwable cause)
           
 
Method Summary
 java.lang.Throwable getCause()
          Gets the causing exception, if any.
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream ps)
           
 void printStackTrace(java.io.PrintWriter pw)
           
 java.lang.String toString()
           
 
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CAUSED_BY

private static final java.lang.String CAUSED_BY
See Also:
Constant Field Values

cause

private java.lang.Throwable cause
Constructor Detail

NestedSQLException

public NestedSQLException(java.lang.String msg)
Constructor


NestedSQLException

public NestedSQLException(java.lang.String reason,
                          java.lang.String SQLState)

NestedSQLException

public NestedSQLException(java.lang.String reason,
                          java.lang.String SQLState,
                          int vendorCode)

NestedSQLException

public NestedSQLException(java.lang.String msg,
                          java.lang.Throwable cause)

NestedSQLException

public NestedSQLException(java.lang.String reason,
                          java.lang.String SQLState,
                          java.lang.Throwable cause)

NestedSQLException

public NestedSQLException(java.lang.String reason,
                          java.lang.String SQLState,
                          int vendorCode,
                          java.lang.Throwable cause)

NestedSQLException

public NestedSQLException(java.lang.Throwable cause)
Method Detail

getCause

public java.lang.Throwable getCause()
Gets the causing exception, if any.


toString

public java.lang.String toString()

printStackTrace

public void printStackTrace()

printStackTrace

public void printStackTrace(java.io.PrintStream ps)

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)