Top Description Methods
org.hibernate.exception.spi

public Interface SQLExceptionConverter

extends Serializable
Known Direct Implementers
org.hibernate.exception.internal.StandardSQLExceptionConverter
Imports
java.io.Serializable, java.sql.SQLException, org.hibernate.JDBCException

An object that interprets JDBC SQLExceptions and converts them to subtypes of Hibernate JDBCExceptions.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public JDBCException

Returns:

The resulting JDBCException.
convert
(SQLException
The SQLException to be converted
sqlException
,
String
An optional error message
message
,
String
The SQL statement that resulted in the exception
sql
)

Convert the given SQLException to a subtype of JDBCException.

Method Detail

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

Convert the given SQLException to a subtype of JDBCException.

Parameters
sqlException:SQLException

The SQLException to be converted

message:String

An optional error message

sql:String

The SQL statement that resulted in the exception

Returns:JDBCException

The resulting JDBCException.

See Also
org.hibernate.exception.ConstraintViolationException, org.hibernate.exception.JDBCConnectionException, org.hibernate.exception.SQLGrammarException, org.hibernate.exception.LockAcquisitionException