Top Fields Constructors Methods
org.hibernate.exception.internal

public Class StandardSQLExceptionConverter

extends Object
implements SQLExceptionConverter
Class Inheritance
All Implemented Interfaces
org.hibernate.exception.spi.SQLExceptionConverter, java.io.Serializable
Known Direct Subclasses
org.hibernate.exception.internal.SQLStateConverter
Imports
java.sql.SQLException, java.util.ArrayList, .Arrays, org.hibernate.JDBCException, org.hibernate.exception.GenericJDBCException, org.hibernate.exception.spi.SQLExceptionConversionDelegate, .SQLExceptionConverter

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final ArrayList<SQLExceptionConversionDelegate>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public JDBCException
convert(SQLException
The SQLException to be converted.
sqlException
,
String
An optional error message.
message
,
String sql)

Implements org.hibernate.exception.spi.SQLExceptionConverter.convert.

Convert the given SQLException into the Hibernate JDBCException hierarchy.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delegatesback to summary
private final ArrayList<SQLExceptionConversionDelegate> delegates

Constructor Detail

StandardSQLExceptionConverterback to summary
public StandardSQLExceptionConverter()

Method Detail

addDelegateback to summary
public void addDelegate(SQLExceptionConversionDelegate delegate)
convertback to summary
public JDBCException convert(SQLException sqlException, String message, String sql)

Implements org.hibernate.exception.spi.SQLExceptionConverter.convert.

Doc from org.hibernate.exception.spi.SQLExceptionConverter.convert.

Convert the given SQLException into the Hibernate JDBCException hierarchy.

Parameters
sqlException:SQLException

The SQLException to be converted.

message:String

An optional error message.

Returns:JDBCException

The resulting JDBCException.

Annotations
@Override