Package org.hibernate.internal
Class ExceptionMapperStandardImpl
- java.lang.Object
-
- org.hibernate.internal.ExceptionMapperStandardImpl
-
- All Implemented Interfaces:
Serializable,ExceptionMapper
public class ExceptionMapperStandardImpl extends Object implements ExceptionMapper
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ExceptionMapperINSTANCE
-
Constructor Summary
Constructors Constructor Description ExceptionMapperStandardImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuntimeExceptionmapManagedFlushFailure(String message, RuntimeException failure, SessionImplementor session)Map an exception encountered during a managed flush to the appropriate runtime-based exception.RuntimeExceptionmapStatusCheckFailure(String message, SystemException systemException, SessionImplementor sessionImplementor)Map a JTASystemExceptionto the appropriate runtime-based exception.
-
-
-
Field Detail
-
INSTANCE
public static final ExceptionMapper INSTANCE
-
-
Method Detail
-
mapStatusCheckFailure
public RuntimeException mapStatusCheckFailure(String message, SystemException systemException, SessionImplementor sessionImplementor)
Description copied from interface:ExceptionMapperMap a JTASystemExceptionto the appropriate runtime-based exception.- Specified by:
mapStatusCheckFailurein 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:ExceptionMapperMap an exception encountered during a managed flush to the appropriate runtime-based exception.- Specified by:
mapManagedFlushFailurein interfaceExceptionMapper- Parameters:
message- The message to use for the returned exceptionfailure- The causal exception- Returns:
- The appropriate exception to throw
-
-