Top Description Methods
org.hibernate.exception.spi

public Interface SQLExceptionConversionDelegate

Known Direct Implementers
org.hibernate.exception.spi.AbstractSQLExceptionConversionDelegate
Imports
java.sql.SQLException, org.hibernate.JDBCException

Allow a SQLExceptionConverter to work by chaining together multiple such delegates. The main difference between a delegate and a full-fledged converter is that a delegate may return null.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public JDBCException

Returns:

The resulting JDBCException, can be null
convert
(SQLException
The SQLException to be converted.
sqlException
,
String
An (optional) error message.
message
,
String
The SQL statement, if one, being performed when the exception occurred.
sql
)

Convert the given SQLException into the Hibernate org.hibernate.JDBCException hierarchy.

Method Detail

convertback to summary
public JDBCException convert(SQLException sqlException, String message, String sql)

Convert the given SQLException into the Hibernate org.hibernate.JDBCException hierarchy.

Parameters
sqlException:SQLException

The SQLException to be converted.

message:String

An (optional) error message.

sql:String

The SQL statement, if one, being performed when the exception occurred.

Returns:JDBCException

The resulting JDBCException, can be null