public class SQLStateConversionDelegate extends AbstractSQLExceptionConversionDelegate
Constructor and Description |
---|
SQLStateConversionDelegate(ConversionContext conversionContext) |
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 the Hibernate
JDBCException hierarchy. |
getConversionContext
public SQLStateConversionDelegate(ConversionContext conversionContext)
public JDBCException convert(java.sql.SQLException sqlException, java.lang.String message, java.lang.String sql)
SQLExceptionConversionDelegate
JDBCException
hierarchy.sqlException
- The SQLException to be converted.message
- An (optional) error message.sql
- The SQL statement, if one, being performed when the exception occurred.null
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.