Package org.hibernate.exception.spi
Interface SQLExceptionConversionDelegate
-
- All Known Implementing Classes:
AbstractSQLExceptionConversionDelegate
public interface SQLExceptionConversionDelegate
Allow aSQLExceptionConverter
to work by chaining together multiple such delegates. The main difference between a delegate and a full-fledged converter is that a delegate may returnnull
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JDBCException
convert(java.sql.SQLException sqlException, java.lang.String message, java.lang.String sql)
Convert the given SQLException into the HibernateJDBCException
hierarchy.
-
-
-
Method Detail
-
convert
JDBCException convert(java.sql.SQLException sqlException, java.lang.String message, java.lang.String sql)
Convert the given SQLException into the HibernateJDBCException
hierarchy.- Parameters:
sqlException
- The SQLException to be converted.message
- An (optional) error message.sql
- The SQL statement, if one, being performed when the exception occurred.- Returns:
- The resulting JDBCException, can be
null
-
-