Interface ExceptionMapper
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ExceptionMapperLegacyJpaImpl
,ExceptionMapperStandardImpl
public interface ExceptionMapper extends Serializable
A pluggable strategy for defining how theSynchronization
registered by Hibernate handles exceptions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RuntimeException
mapManagedFlushFailure(String message, RuntimeException failure, SessionImplementor session)
Map an exception encountered during a managed flush to the appropriate runtime-based exception.RuntimeException
mapStatusCheckFailure(String message, SystemException systemException, SessionImplementor sessionImplementor)
Map a JTASystemException
to the appropriate runtime-based exception.
-
-
-
Method Detail
-
mapStatusCheckFailure
RuntimeException mapStatusCheckFailure(String message, SystemException systemException, SessionImplementor sessionImplementor)
Map a JTASystemException
to the appropriate runtime-based exception.- Parameters:
message
- The message to use for the returned exceptionsystemException
- The causal exception- Returns:
- 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.- Parameters:
message
- The message to use for the returned exceptionfailure
- The causal exception- Returns:
- The appropriate exception to throw
-
-