Package org.hibernate.internal
Class ExceptionMapperStandardImpl
java.lang.Object
org.hibernate.internal.ExceptionMapperStandardImpl
- All Implemented Interfaces:
Serializable
,ExceptionMapper
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmapManagedFlushFailure
(String message, RuntimeException failure, SessionImplementor session) Map an exception encountered during a managed flush to the appropriate runtime-based exception.mapStatusCheckFailure
(String message, SystemException systemException, SessionImplementor sessionImplementor) Map a JTASystemException
to the appropriate runtime-based exception.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ExceptionMapperStandardImpl
public ExceptionMapperStandardImpl()
-
-
Method Details
-
mapStatusCheckFailure
public RuntimeException mapStatusCheckFailure(String message, SystemException systemException, SessionImplementor sessionImplementor) Description copied from interface:ExceptionMapper
Map a JTASystemException
to the appropriate runtime-based exception.- Specified by:
mapStatusCheckFailure
in interfaceExceptionMapper
- Parameters:
message
- The message to use for the returned exceptionsystemException
- The causal exception- Returns:
- The appropriate exception to throw
-
mapManagedFlushFailure
public RuntimeException mapManagedFlushFailure(String message, RuntimeException failure, SessionImplementor session) Description copied from interface:ExceptionMapper
Map an exception encountered during a managed flush to the appropriate runtime-based exception.- Specified by:
mapManagedFlushFailure
in interfaceExceptionMapper
- Parameters:
message
- The message to use for the returned exceptionfailure
- The causal exception- Returns:
- The appropriate exception to throw
-