public class ExceptionConverterImpl extends java.lang.Object implements ExceptionConverter
Constructor and Description |
---|
ExceptionConverterImpl(SharedSessionContractImplementor sharedSessionContract) |
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
|
protected javax.persistence.PersistenceException |
wrapLockException(HibernateException e,
LockOptions lockOptions) |
protected javax.persistence.PersistenceException |
wrapStaleStateException(StaleStateException e) |
public ExceptionConverterImpl(SharedSessionContractImplementor sharedSessionContract)
public java.lang.RuntimeException convertCommitException(java.lang.RuntimeException e)
ExceptionConverter
convertCommitException
in interface ExceptionConverter
e
- The exception being handledpublic java.lang.RuntimeException convert(HibernateException e, LockOptions lockOptions)
ExceptionConverter
convert
in interface ExceptionConverter
e
- The Hibernate excepton.lockOptions
- The lock options in effect at the time of exception (can be null)public java.lang.RuntimeException convert(HibernateException e)
ExceptionConverter
convert
in interface ExceptionConverter
e
- The Hibernate excepton.public java.lang.RuntimeException convert(java.lang.RuntimeException e)
convert
in interface ExceptionConverter
public java.lang.RuntimeException convert(java.lang.RuntimeException e, LockOptions lockOptions)
convert
in interface ExceptionConverter
public JDBCException convert(java.sql.SQLException e, java.lang.String message)
convert
in interface ExceptionConverter
protected javax.persistence.PersistenceException wrapStaleStateException(StaleStateException e)
protected javax.persistence.PersistenceException wrapLockException(HibernateException e, LockOptions lockOptions)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.