Top Methods
org.hibernate.engine.spi

public Interface ExceptionConverter

Known Direct Implementers
org.hibernate.internal.ExceptionConverterImpl
Imports
java.sql.SQLException, org.hibernate.HibernateException, .JDBCException, .LockOptions

Author
Andrea Boriero

Method Summary

Modifier and TypeMethod and Description
public RuntimeException

Returns:

The JPA-specified exception
convert
(HibernateException
The Hibernate exception.
e
,
LockOptions
The lock options in effect at the time of exception (can be null)
lockOptions
)

Converts a Hibernate-specific exception into a JPA-specified exception; note that the JPA specification makes use of exceptions outside its exception hierarchy, though they are all runtime exceptions.

public RuntimeException

Returns:

The JPA-specified exception
convert
(HibernateException
The Hibernate exception.
e
)

Converts a Hibernate-specific exception into a JPA-specified exception; note that the JPA specification makes use of exceptions outside its exception hierarchy, though they are all runtime exceptions.

public RuntimeException
public RuntimeException
public JDBCException
public RuntimeException

Returns:

The converted exception
convertCommitException
(RuntimeException
The exception being handled
e
)

Converts the exception thrown during the transaction commit phase

Method Detail

convertback to summary
public RuntimeException convert(HibernateException e, LockOptions lockOptions)

Converts a Hibernate-specific exception into a JPA-specified exception; note that the JPA specification makes use of exceptions outside its exception hierarchy, though they are all runtime exceptions.

Parameters
e:HibernateException

The Hibernate exception.

lockOptions:LockOptions

The lock options in effect at the time of exception (can be null)

Returns:RuntimeException

The JPA-specified exception

convertback to summary
public RuntimeException convert(HibernateException e)

Converts a Hibernate-specific exception into a JPA-specified exception; note that the JPA specification makes use of exceptions outside its exception hierarchy, though they are all runtime exceptions.

Parameters
e:HibernateException

The Hibernate exception.

Returns:RuntimeException

The JPA-specified exception

convertback to summary
public RuntimeException convert(RuntimeException e)
convertback to summary
public RuntimeException convert(RuntimeException e, LockOptions lockOptions)
convertback to summary
public JDBCException convert(SQLException e, String message)
convertCommitExceptionback to summary
public RuntimeException convertCommitException(RuntimeException e)

Converts the exception thrown during the transaction commit phase

Parameters
e:RuntimeException

The exception being handled

Returns:RuntimeException

The converted exception