Known Direct Subclasses
ConstraintViolationException |
Implementation of JDBCException indicating that the requested DML operation
resulted in a violation of a defined integrity constraint. |
DataException |
Implementation of JDBCException indicating that evaluation of the
valid SQL statement against the given data resulted in some
illegal operation, mismatched types or incorrect cardinality. |
GenericJDBCException |
Generic, non-specific JDBCException. |
JDBCConnectionException |
Implementation of JDBCException indicating problems with communicating with the
database (can also include incorrect JDBC setup). |
LockAcquisitionException |
Implementation of JDBCException indicating a problem acquiring lock
on the database. |
PessimisticLockException |
Thrown when a pessimistic locking conflict occurs. |
QueryTimeoutException |
Thrown when a database query timeout occurs. |
SQLGrammarException |
Implementation of JDBCException indicating that the SQL sent to the database
server was invalid (syntax error, invalid object references, etc). |
|
Class Overview
Wraps an SQLException. Indicates that an exception
occurred during a JDBC call.
Public Constructors
Public Methods
public
int
getErrorCode
()
Get the errorCode of the underlying SQLException.
public
String
getSQL
()
Get the actual SQL statement that caused the exception
(may be null)
public
SQLException
getSQLException
()
Get the underlying SQLException.
public
String
getSQLState
()
Get the SQLState of the underlying SQLException.