org.hibernate
Class JDBCException
- Nestable
public class JDBCException
Wraps an SQLException. Indicates that an exception
occurred during a JDBC call.
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.
|
getCause , getMessage , getMessage , getMessages , getThrowable , getThrowableCount , getThrowables , indexOfThrowable , indexOfThrowable , printPartialStackTrace , printStackTrace , printStackTrace , printStackTrace |
JDBCException
public JDBCException(String string,
SQLException root)
JDBCException
public JDBCException(String string,
SQLException root,
String sql)
getErrorCode
public int getErrorCode()
Get the errorCode of the underlying SQLException.
getSQL
public String getSQL()
Get the actual SQL statement that caused the exception
(may be null)
getSQLException
public SQLException getSQLException()
Get the underlying SQLException.
getSQLState
public String getSQLState()
Get the SQLState of the underlying SQLException.