public interface SQLExceptionConverter extends Serializable
ViolatedConstraintNameExtracter
parameter.
Implementations may implement Configurable
if they need to perform
configuration steps prior to first use.SQLExceptionConverterFactory
Modifier and Type | Method and Description |
---|---|
JDBCException |
convert(SQLException sqlException,
String message,
String sql)
Convert the given SQLException into the Hibernate
JDBCException hierarchy. |
JDBCException convert(SQLException sqlException, String message, String sql)
JDBCException
hierarchy.sqlException
- The SQLException to be converted.message
- An optional error message., JDBCConnectionException, SQLGrammarException, LockAcquisitionException
Copyright © 2017 JBoss by Red Hat. All rights reserved.