|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException com.ibatis.common.jdbc.exception.RuntimeSQLException
Unchecked exception to allow passing an Exception with the original SQLException
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 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 |
public RuntimeSQLException()
public RuntimeSQLException(java.lang.String msg)
msg
- - the messagecom.ibatis.common.exception.RuntimeException
public RuntimeSQLException(java.sql.SQLException sqlException)
sqlException
- - the exceptioncom.ibatis.common.exception.RuntimeException
public RuntimeSQLException(java.lang.String msg, java.sql.SQLException sqlException)
msg
- - the messagesqlException
- - the exceptioncom.ibatis.common.exception.RuntimeException
Method Detail |
public java.lang.String getSQLState()
public int getErrorCode()
public java.sql.SQLException getNextException()
public void setNextException(java.sql.SQLException ex)
ex
- - the next exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |