Package org.hibernate.exception.spi
Interface SQLExceptionConverter
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
StandardSQLExceptionConverter
public interface SQLExceptionConverter extends Serializable
An object that interprets JDBCSQLException
s and converts them to subtypes of HibernateJDBCException
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JDBCException
convert(SQLException sqlException, String message, String sql)
Convert the givenSQLException
to a subtype ofJDBCException
.
-
-
-
Method Detail
-
convert
JDBCException convert(SQLException sqlException, String message, String sql)
Convert the givenSQLException
to a subtype ofJDBCException
.- Parameters:
sqlException
- TheSQLException
to be convertedmessage
- An optional error messagesql
- The SQL statement that resulted in the exception- Returns:
- The resulting
JDBCException
. - See Also:
ConstraintViolationException
,JDBCConnectionException
,SQLGrammarException
,LockAcquisitionException
-
-