public class StandardSQLExceptionConverter extends java.lang.Object implements SQLExceptionConverter
Constructor and Description |
---|
StandardSQLExceptionConverter() |
StandardSQLExceptionConverter(SQLExceptionConversionDelegate... delegates) |
Modifier and Type | Method and Description |
---|---|
void |
addDelegate(SQLExceptionConversionDelegate delegate) |
JDBCException |
convert(java.sql.SQLException sqlException,
java.lang.String message,
java.lang.String sql)
Convert the given SQLException into the Hibernate
JDBCException hierarchy. |
public StandardSQLExceptionConverter()
public StandardSQLExceptionConverter(SQLExceptionConversionDelegate... delegates)
public void addDelegate(SQLExceptionConversionDelegate delegate)
public JDBCException convert(java.sql.SQLException sqlException, java.lang.String message, java.lang.String sql)
SQLExceptionConverter
JDBCException
hierarchy.convert
in interface SQLExceptionConverter
sqlException
- The SQLException to be converted.message
- An optional error message., JDBCConnectionException, SQLGrammarException, LockAcquisitionException
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.