|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.hibernate.HibernateException
org.hibernate.JDBCException
public class JDBCException
Wraps an SQLException. Indicates that an exception occurred during a JDBC call.
SQLException,
Serialized Form| Constructor Summary | |
|---|---|
JDBCException(String string,
SQLException root)
|
|
JDBCException(String string,
SQLException root,
String sql)
|
|
| Method Summary | |
|---|---|
int |
getErrorCode()
Get the errorCode of the underlying SQLException. |
String |
getSQL()
Get the actual SQL statement that caused the exception (may be null) |
SQLException |
getSQLException()
Get the underlying SQLException. |
String |
getSQLState()
Get the SQLState of the underlying SQLException. |
| 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 JDBCException(String string,
SQLException root)
public JDBCException(String string,
SQLException root,
String sql)
| Method Detail |
|---|
public String getSQLState()
SQLExceptionpublic int getErrorCode()
SQLExceptionpublic SQLException getSQLException()
public String getSQL()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||