org.hibernate.exception
Class CacheSQLStateConverter
java.lang.Object
org.hibernate.exception.CacheSQLStateConverter
- SQLExceptionConverter
public class CacheSQLStateConverter
extends java.lang.Object
A SQLExceptionConverter implementation specific to Caché SQL,
accounting for its custom integrity constraint violation error codes.
JDBCException | convert(SQLException sqlException, String message, String sql) - Convert the given SQLException into Hibernate's JDBCException hierarchy.
|
protected JDBCException | handledNonSpecificException(SQLException sqlException, String message, String sql) - Handle an exception not converted to a specific type based on the SQLState.
|
convert
public JDBCException convert(SQLException sqlException,
String message,
String sql)
Convert the given SQLException into Hibernate's JDBCException hierarchy.
- convert in interface SQLExceptionConverter
sqlException
- The SQLException to be converted.message
- An optional error message.sql
- Optionally, the sql being performed when the exception occurred.
- The resulting JDBCException.
handledNonSpecificException
protected JDBCException handledNonSpecificException(SQLException sqlException,
String message,
String sql)
Handle an exception not converted to a specific type based on the SQLState.
sqlException
- The exception to be handled.message
- An optional messagesql
- Optionally, the sql being performed when the exception occurred.
- The converted exception; should never be null.