Package org.hibernate.jpa.internal
Class ExceptionMapperLegacyJpaImpl
java.lang.Object
org.hibernate.jpa.internal.ExceptionMapperLegacyJpaImpl
- All Implemented Interfaces:
Serializable,ExceptionMapper
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
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 session) Map a JTASystemExceptionto the appropriate runtime-based exception.
-
Field Details
-
INSTANCE
Singleton access
-
-
Constructor Details
-
ExceptionMapperLegacyJpaImpl
public ExceptionMapperLegacyJpaImpl()
-
-
Method Details
-
mapStatusCheckFailure
public RuntimeException mapStatusCheckFailure(String message, SystemException systemException, SessionImplementor session) 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
-