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
ASQLExceptionConverter
that 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 void
addDelegate(SQLExceptionConversionDelegate delegate)
Deprecated.JDBCException
convert(SQLException sqlException, String message, String sql)
Convert the givenSQLException
to 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: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:
ConstraintViolationException
,JDBCConnectionException
,SQLGrammarException
,LockAcquisitionException
-
-