Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.ibatis.common.jdbc.exception
Class RuntimeSQLException  view RuntimeSQLException download RuntimeSQLException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.ibatis.common.exception.NestedRuntimeException
                  extended bycom.ibatis.common.jdbc.exception.RuntimeSQLException
All Implemented Interfaces:
java.io.Serializable

public class RuntimeSQLException
extends com.ibatis.common.exception.NestedRuntimeException

Unchecked exception to allow passing an Exception with the original SQLException


Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
 
Fields inherited from class com.ibatis.common.exception.NestedRuntimeException
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
RuntimeSQLException()
          Default constructor
RuntimeSQLException(java.sql.SQLException sqlException)
          Constructor to pass along another exception
RuntimeSQLException(java.lang.String msg)
          Constructor to pass along a message
RuntimeSQLException(java.lang.String msg, java.sql.SQLException sqlException)
          Constructor to pass along a message and an exception
 
Method Summary
 int getErrorCode()
          Getter for the error code
 java.sql.SQLException getNextException()
          Get the next exception in the chain
 java.lang.String getSQLState()
          Getter for the SQL State
 void setNextException(java.sql.SQLException ex)
          Set the next exception in the chain
 
Methods inherited from class com.ibatis.common.exception.NestedRuntimeException
getCause, printStackTrace, printStackTrace, printStackTrace, toString
 
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
 

Constructor Detail

RuntimeSQLException

public RuntimeSQLException()
Default constructor


RuntimeSQLException

public RuntimeSQLException(java.lang.String msg)
Constructor to pass along a message


RuntimeSQLException

public RuntimeSQLException(java.sql.SQLException sqlException)
Constructor to pass along another exception


RuntimeSQLException

public RuntimeSQLException(java.lang.String msg,
                           java.sql.SQLException sqlException)
Constructor to pass along a message and an exception

Method Detail

getSQLState

public java.lang.String getSQLState()
Getter for the SQL State


getErrorCode

public int getErrorCode()
Getter for the error code


getNextException

public java.sql.SQLException getNextException()
Get the next exception in the chain


setNextException

public void setNextException(java.sql.SQLException ex)
Set the next exception in the chain