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