Package org.hibernate.exception.internal
Class StandardSQLExceptionConverter
- java.lang.Object
-
- org.hibernate.exception.internal.StandardSQLExceptionConverter
-
- All Implemented Interfaces:
Serializable,SQLExceptionConverter
public class StandardSQLExceptionConverter extends Object implements SQLExceptionConverter
ASQLExceptionConverterthat delegates to a chain ofSQLExceptionConversionDelegate.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StandardSQLExceptionConverter()Deprecated.StandardSQLExceptionConverter(SQLExceptionConversionDelegate... delegates)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddDelegate(SQLExceptionConversionDelegate delegate)Deprecated.JDBCExceptionconvert(SQLException sqlException, String message, String sql)Convert the givenSQLExceptionto a subtype ofJDBCException.
-
-
-
Constructor Detail
-
StandardSQLExceptionConverter
public StandardSQLExceptionConverter(SQLExceptionConversionDelegate... delegates)
-
StandardSQLExceptionConverter
@Deprecated(since="6.0") public StandardSQLExceptionConverter()
Deprecated.
-
-
Method Detail
-
addDelegate
@Deprecated(since="6.0") public void addDelegate(SQLExceptionConversionDelegate delegate)
Deprecated.Add a delegate.
-
convert
public JDBCException convert(SQLException sqlException, String message, String sql)
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:
ConstraintViolationException,JDBCConnectionException,SQLGrammarException,LockAcquisitionException
-
-