public class SQLExceptionTypeDelegate extends AbstractSQLExceptionConversionDelegate
SQLExceptionConverter implementation that does conversion based on the
JDBC 4 defined SQLException sub-type hierarchy.| Constructor and Description |
|---|
SQLExceptionTypeDelegate(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 SQLExceptionTypeDelegate(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 © 2001-2015 Red Hat, Inc. All Rights Reserved.