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.- Author:
- Steve Ebersole
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.StandardSQLExceptionConverter(SQLExceptionConversionDelegate... delegates) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDelegate(@Nullable SQLExceptionConversionDelegate delegate) Deprecated.convert(SQLException sqlException, String message, String sql) Convert the givenSQLExceptionto a subtype ofJDBCException.
-
Constructor Details
-
StandardSQLExceptionConverter
-
StandardSQLExceptionConverter
Deprecated.
-
-
Method Details
-
addDelegate
Deprecated.Add a delegate. -
convert
Description copied from interface:SQLExceptionConverterConvert the givenSQLExceptionto a subtype ofJDBCException.- Specified by:
convertin interfaceSQLExceptionConverter- Parameters:
sqlException- TheSQLExceptionto be convertedmessage- An optional error messagesql- The SQL statement that resulted in the exception- Returns:
- The resulting
JDBCException. - See Also:
-
StandardSQLExceptionConverter(SQLExceptionConversionDelegate...)