org.hibernate.exception
public interface SQLExceptionConverter
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(java.sql.SQLException sqlException,
java.lang.String message,
java.lang.String sql)
Convert the given SQLException into Hibernate's JDBCException hierarchy.
|
JDBCException convert(java.sql.SQLException sqlException, java.lang.String message, java.lang.String sql)
sqlException
- The SQLException to be converted.message
- An optional error message.ConstraintViolationException, JDBCConnectionException, SQLGrammarException, LockAcquisitionException
Copyright © 2014. All Rights Reserved.