public class JDBCException extends HibernateException
SQLException,
Serialized Form| Constructor and Description |
|---|
JDBCException(java.lang.String string,
java.sql.SQLException root) |
JDBCException(java.lang.String string,
java.sql.SQLException root,
java.lang.String sql) |
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorCode()
Get the errorCode of the underlying SQLException.
|
java.lang.String |
getSQL()
Get the actual SQL statement that caused the exception
(may be null)
|
java.sql.SQLException |
getSQLException()
Get the underlying SQLException.
|
java.lang.String |
getSQLState()
Get the SQLState of the underlying SQLException.
|
public JDBCException(java.lang.String string,
java.sql.SQLException root)
public JDBCException(java.lang.String string,
java.sql.SQLException root,
java.lang.String sql)
public java.lang.String getSQLState()
SQLExceptionpublic int getErrorCode()
SQLExceptionpublic java.sql.SQLException getSQLException()
public java.lang.String getSQL()
Copyright © 2013. All Rights Reserved.