|
|||||||||||
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 net.sf.hibernate.exception.NestableException net.sf.hibernate.HibernateException net.sf.hibernate.JDBCException
Wraps an SQLException. Indicates that an exception occurred during a JDBC call.
SQLException
,
Serialized FormField Summary |
Fields inherited from class net.sf.hibernate.exception.NestableException |
delegate |
Constructor Summary | |
JDBCException(SQLException root)
Constructor for JDBCException. |
|
JDBCException(String message,
SQLException root)
Constructor for JDBCException. |
Method Summary | |
int |
getErrorCode()
Get the errorCode of the underlying SQLException. |
SQLException |
getSQLException()
Get the underlying SQLException. |
String |
getSQLState()
Get the SQLState of the underlying SQLException. |
Methods inherited from class net.sf.hibernate.exception.NestableException |
getCause, getMessage, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JDBCException(SQLException root)
root
- The underlying exception.public JDBCException(String message, SQLException root)
message
- Optional message.root
- The underlying exception.Method Detail |
public String getSQLState()
SQLException
public int getErrorCode()
SQLException
public SQLException getSQLException()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |