public interface ExceptionConverter
Modifier and Type | Method and Description |
---|---|
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 |
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 |
convertCommitException(java.lang.RuntimeException e)
Converts the exception thrown during the transaction commit phase
|
java.lang.RuntimeException convertCommitException(java.lang.RuntimeException e)
e
- The exception being handledjava.lang.RuntimeException convert(HibernateException e, LockOptions lockOptions)
e
- The Hibernate excepton.lockOptions
- The lock options in effect at the time of exception (can be null)java.lang.RuntimeException convert(HibernateException e)
e
- The Hibernate excepton.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)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.