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.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable JDBCException
convert
(SQLException sqlException, String message, String sql) Convert the givenSQLException
to 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:SQLExceptionConversionDelegate
Convert the givenSQLException
to a subtype ofJDBCException
, if possible.- Parameters:
sqlException
- TheSQLException
to be convertedmessage
- An optional error messagesql
- The SQL statement that resulted in the exception- Returns:
- The resulting
JDBCException
, ornull
if this delegate does not know how to interpret the givenSQLException
.
-