Package org.hibernate.exception.internal
Class StandardSQLExceptionConverter
java.lang.Object
org.hibernate.exception.internal.StandardSQLExceptionConverter
- All Implemented Interfaces:
Serializable
,SQLExceptionConverter
A
SQLExceptionConverter
that delegates to a chain of
SQLExceptionConversionDelegate
.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.StandardSQLExceptionConverter
(SQLExceptionConversionDelegate... delegates) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDelegate
(@Nullable SQLExceptionConversionDelegate delegate) Deprecated.convert
(SQLException sqlException, String message, String sql) Convert the givenSQLException
to a subtype ofJDBCException
.
-
Constructor Details
-
StandardSQLExceptionConverter
-
StandardSQLExceptionConverter
Deprecated.
-
-
Method Details
-
addDelegate
Deprecated.Add a delegate. -
convert
Description copied from interface:SQLExceptionConverter
Convert the givenSQLException
to a subtype ofJDBCException
.- Specified by:
convert
in interfaceSQLExceptionConverter
- Parameters:
sqlException
- TheSQLException
to be convertedmessage
- An optional error messagesql
- The SQL statement that resulted in the exception- Returns:
- The resulting
JDBCException
. - See Also:
-
StandardSQLExceptionConverter(SQLExceptionConversionDelegate...)