Package org.hibernate.exception.internal
Class SQLExceptionTypeDelegate
java.lang.Object
org.hibernate.exception.spi.AbstractSQLExceptionConversionDelegate
org.hibernate.exception.internal.SQLExceptionTypeDelegate
- All Implemented Interfaces:
SQLExceptionConversionDelegate
A
SQLExceptionConverter implementation
that does conversion based on the SQLException subtype hierarchy
defined by JDBC 4.- Author:
- Steve Ebersole
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable JDBCExceptionconvert(SQLException sqlException, String message, String sql) Convert the givenSQLExceptionto a subtype ofJDBCException, if possible.Methods inherited from class org.hibernate.exception.spi.AbstractSQLExceptionConversionDelegate
getConversionContext
-
Constructor Details
-
SQLExceptionTypeDelegate
-
-
Method Details
-
convert
Description copied from interface:SQLExceptionConversionDelegateConvert the givenSQLExceptionto a subtype ofJDBCException, if possible.- Parameters:
sqlException- TheSQLExceptionto be convertedmessage- An optional error messagesql- The SQL statement that resulted in the exception- Returns:
- The resulting
JDBCException, ornullif this delegate does not know how to interpret the givenSQLException.
-