public class JDBCException extends HibernateException
SQLException,
Serialized Form| Constructor 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, toStringpublic JDBCException(String string, SQLException root)
public JDBCException(String string, SQLException root, String sql)
public String getSQLState()
SQLExceptionpublic int getErrorCode()
SQLExceptionpublic SQLException getSQLException()
public String getSQL()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.