类 ExceptionConverterImpl
- java.lang.Object
-
- org.hibernate.internal.ExceptionConverterImpl
-
- 所有已实现的接口:
ExceptionConverter
public class ExceptionConverterImpl extends Object implements ExceptionConverter
- 作者:
- Andrea Boriero
-
-
构造器概要
构造器 构造器 说明 ExceptionConverterImpl(SharedSessionContractImplementor sharedSessionContract)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 RuntimeExceptionconvert(RuntimeException e)RuntimeExceptionconvert(RuntimeException e, LockOptions lockOptions)JDBCExceptionconvert(SQLException e, String message)RuntimeExceptionconvert(HibernateException e)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.RuntimeExceptionconvert(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.RuntimeExceptionconvertCommitException(RuntimeException e)Converts the exception thrown during the transaction commit phaseprotected javax.persistence.PersistenceExceptionwrapLockException(HibernateException e, LockOptions lockOptions)protected javax.persistence.PersistenceExceptionwrapStaleStateException(StaleStateException e)
-
-
-
构造器详细资料
-
ExceptionConverterImpl
public ExceptionConverterImpl(SharedSessionContractImplementor sharedSessionContract)
-
-
方法详细资料
-
convertCommitException
public RuntimeException convertCommitException(RuntimeException e)
从接口复制的说明:ExceptionConverterConverts the exception thrown during the transaction commit phase- 指定者:
convertCommitException在接口中ExceptionConverter- 参数:
e- The exception being handled- 返回:
- The converted exception
-
convert
public RuntimeException convert(HibernateException e, LockOptions lockOptions)
从接口复制的说明:ExceptionConverterConverts 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在接口中ExceptionConverter- 参数:
e- The Hibernate exception.lockOptions- The lock options in effect at the time of exception (can be null)- 返回:
- The JPA-specified exception
-
convert
public RuntimeException convert(HibernateException e)
从接口复制的说明:ExceptionConverterConverts 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在接口中ExceptionConverter- 参数:
e- The Hibernate exception.- 返回:
- The JPA-specified exception
-
convert
public RuntimeException convert(RuntimeException e)
- 指定者:
convert在接口中ExceptionConverter
-
convert
public RuntimeException convert(RuntimeException e, LockOptions lockOptions)
- 指定者:
convert在接口中ExceptionConverter
-
convert
public JDBCException convert(SQLException e, String message)
- 指定者:
convert在接口中ExceptionConverter
-
wrapStaleStateException
protected javax.persistence.PersistenceException wrapStaleStateException(StaleStateException e)
-
wrapLockException
protected javax.persistence.PersistenceException wrapLockException(HibernateException e, LockOptions lockOptions)
-
-