Top Description 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
Imports
org.hibernate.JDBCException, org.hibernate.exception.GenericJDBCException, org.hibernate.exception.spi.SQLExceptionConversionDelegate, .SQLExceptionConverter, java.sql.SQLException, java.util.ArrayList, .Arrays, .List, org.checkerframework.checker.nullness.qual.Nullable

A SQLExceptionConverter that delegates to a chain of SQLExceptionConversionDelegate.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final List<SQLExceptionConversionDelegate>

Constructor Summary

AccessConstructor and Description
public
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
The SQL statement that resulted in the exception
sql
)

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

Convert the given SQLException to a subtype of JDBCException.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delegatesback to summary
private final List<SQLExceptionConversionDelegate> delegates

Constructor Detail

StandardSQLExceptionConverterback to summary
public StandardSQLExceptionConverter(SQLExceptionConversionDelegate... delegates)
StandardSQLExceptionConverterback to summary
public StandardSQLExceptionConverter()
Annotations
@Deprecated
since:6.0

Method Detail

addDelegateback to summary
public void addDelegate(@Nullable SQLExceptionConversionDelegate delegate)

Add a delegate.

Annotations
@Deprecated
since:6.0
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 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.

Annotations
@Override