接口 ExceptionMapper
-
- 所有超级接口:
Serializable
public interface ExceptionMapper extends Serializable
A pluggable strategy for defining how theSynchronizationregistered by Hibernate handles exceptions.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 RuntimeExceptionmapManagedFlushFailure(String message, RuntimeException failure, SessionImplementor session)Map an exception encountered during a managed flush to the appropriate runtime-based exception.RuntimeExceptionmapStatusCheckFailure(String message, javax.transaction.SystemException systemException, SessionImplementor sessionImplementor)Map a JTASystemExceptionto the appropriate runtime-based exception.
-
-
-
方法详细资料
-
mapStatusCheckFailure
RuntimeException mapStatusCheckFailure(String message, javax.transaction.SystemException systemException, SessionImplementor sessionImplementor)
Map a JTASystemExceptionto the appropriate runtime-based exception.- 参数:
message- The message to use for the returned exceptionsystemException- The causal exception- 返回:
- The appropriate exception to throw
-
mapManagedFlushFailure
RuntimeException mapManagedFlushFailure(String message, RuntimeException failure, SessionImplementor session)
Map an exception encountered during a managed flush to the appropriate runtime-based exception.- 参数:
message- The message to use for the returned exceptionfailure- The causal exception- 返回:
- The appropriate exception to throw
-
-