public class JDBCException extends HibernateException
SQLException
,
Serialized FormConstructor 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()
SQLException
public int getErrorCode()
SQLException
public java.sql.SQLException getSQLException()
public java.lang.String getSQL()
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.