Package org.hibernate.exception.spi
Interface SQLExceptionConverter
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
StandardSQLExceptionConverter
An object that interprets JDBC
SQLExceptions and converts
them to subtypes of Hibernate JDBCExceptions.-
Method Summary
Modifier and TypeMethodDescriptionconvert(SQLException sqlException, String message, String sql) Convert the givenSQLExceptionto a subtype ofJDBCException.
-
Method Details
-
convert
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:
-