public class JDBCException extends HibernateException
SQLException
,
Serialized FormConstructor and Description |
---|
JDBCException(String string,
SQLException root) |
JDBCException(String string,
SQLException root,
String sql) |
Modifier and Type | Method and Description |
---|---|
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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public JDBCException(String string, SQLException root)
public JDBCException(String string, SQLException root, String sql)
public String getSQLState()
SQLException
public int getErrorCode()
SQLException
public SQLException getSQLException()
public String getSQL()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.