Package org.hibernate.jpa.internal
Class ExceptionMapperLegacyJpaImpl
- java.lang.Object
-
- org.hibernate.jpa.internal.ExceptionMapperLegacyJpaImpl
-
- All Implemented Interfaces:
Serializable
,ExceptionMapper
public class ExceptionMapperLegacyJpaImpl extends Object implements ExceptionMapper
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ExceptionMapperLegacyJpaImpl
INSTANCE
Singleton access
-
Constructor Summary
Constructors Constructor Description ExceptionMapperLegacyJpaImpl()
-
Method Summary
All Methods Instance Methods Concrete 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 session)
Map a JTASystemException
to the appropriate runtime-based exception.
-
-
-
Field Detail
-
INSTANCE
public static final ExceptionMapperLegacyJpaImpl INSTANCE
Singleton access
-
-
Method Detail
-
mapStatusCheckFailure
public RuntimeException mapStatusCheckFailure(String message, SystemException systemException, SessionImplementor session)
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
-
-