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