Package org.hibernate.engine.spi
Interface ExceptionConverter
-
public interface ExceptionConverter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.RuntimeException
convert(java.lang.RuntimeException e)
java.lang.RuntimeException
convert(java.lang.RuntimeException e, LockOptions lockOptions)
JDBCException
convert(java.sql.SQLException e, java.lang.String message)
java.lang.RuntimeException
convert(HibernateException e)
Converts a Hibernate-specific exception into a JPA-specified exception; note that the JPA sepcification makes use of exceptions outside its exception hierarchy, though they are all runtime exceptions.java.lang.RuntimeException
convert(HibernateException e, LockOptions lockOptions)
Converts a Hibernate-specific exception into a JPA-specified exception; note that the JPA sepcification makes use of exceptions outside its exception hierarchy, though they are all runtime exceptions.java.lang.RuntimeException
convertCommitException(java.lang.RuntimeException e)
Converts the exception thrown during the transaction commit phase
-
-
-
Method Detail
-
convertCommitException
java.lang.RuntimeException convertCommitException(java.lang.RuntimeException e)
Converts the exception thrown during the transaction commit phase- Parameters:
e
- The exception being handled- Returns:
- The converted exception
-
convert
java.lang.RuntimeException convert(HibernateException e, LockOptions lockOptions)
Converts a Hibernate-specific exception into a JPA-specified exception; note that the JPA sepcification makes use of exceptions outside its exception hierarchy, though they are all runtime exceptions.- Parameters:
e
- The Hibernate excepton.lockOptions
- The lock options in effect at the time of exception (can be null)- Returns:
- The JPA-specified exception
-
convert
java.lang.RuntimeException convert(HibernateException e)
Converts a Hibernate-specific exception into a JPA-specified exception; note that the JPA sepcification makes use of exceptions outside its exception hierarchy, though they are all runtime exceptions.- Parameters:
e
- The Hibernate excepton.- Returns:
- The JPA-specified exception
-
convert
java.lang.RuntimeException convert(java.lang.RuntimeException e)
-
convert
java.lang.RuntimeException convert(java.lang.RuntimeException e, LockOptions lockOptions)
-
convert
JDBCException convert(java.sql.SQLException e, java.lang.String message)
-
-