Package org.hibernate.engine.spi
Interface ExceptionConverter
- All Known Implementing Classes:
ExceptionConverterImpl
public interface ExceptionConverter
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(RuntimeException e, LockOptions lockOptions) convert
(SQLException e, String message) 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.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.Converts the exception thrown during the transaction commit phase
-
Method Details
-
convertCommitException
Converts the exception thrown during the transaction commit phase- Parameters:
e
- The exception being handled- Returns:
- The converted exception
-
convert
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
- The Hibernate exception.lockOptions
- The lock options in effect at the time of exception (can be null)- Returns:
- The JPA-specified exception
-
convert
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
- The Hibernate exception.- Returns:
- The JPA-specified exception
-
convert
-
convert
-
convert
-