public class SQLStateConversionDelegate extends AbstractSQLExceptionConversionDelegate
| Constructor and Description |
|---|
SQLStateConversionDelegate(ConversionContext conversionContext) |
| Modifier and Type | Method and Description |
|---|---|
JDBCException |
convert(SQLException sqlException,
String message,
String sql)
Convert the given SQLException into the Hibernate
JDBCException hierarchy. |
getConversionContextpublic SQLStateConversionDelegate(ConversionContext conversionContext)
public JDBCException convert(SQLException sqlException, String message, String sql)
SQLExceptionConversionDelegateJDBCException hierarchy.sqlException - The SQLException to be converted.message - An (optional) error message.sql - The SQL statement, if one, being performed when the exception occurred.nullCopyright © 2012 JBoss by Red Hat. All Rights Reserved.