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