public class ExceptionMapperLegacyJpaImpl extends java.lang.Object implements ExceptionMapper
| Modifier and Type | Field and Description |
|---|---|
static ExceptionMapperLegacyJpaImpl |
INSTANCE
Singleton access
|
| Constructor and Description |
|---|
ExceptionMapperLegacyJpaImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.RuntimeException |
mapManagedFlushFailure(java.lang.String message,
java.lang.RuntimeException failure,
SessionImplementor session)
Map an exception encountered during a managed flush to the appropriate runtime-based exception.
|
java.lang.RuntimeException |
mapStatusCheckFailure(java.lang.String message,
javax.transaction.SystemException systemException,
SessionImplementor session)
Map a JTA
SystemException to the appropriate runtime-based exception. |
public static final ExceptionMapperLegacyJpaImpl INSTANCE
public java.lang.RuntimeException mapStatusCheckFailure(java.lang.String message,
javax.transaction.SystemException systemException,
SessionImplementor session)
ExceptionMapperSystemException to the appropriate runtime-based exception.mapStatusCheckFailure in interface ExceptionMappermessage - The message to use for the returned exceptionsystemException - The causal exceptionpublic java.lang.RuntimeException mapManagedFlushFailure(java.lang.String message,
java.lang.RuntimeException failure,
SessionImplementor session)
ExceptionMappermapManagedFlushFailure in interface ExceptionMappermessage - The message to use for the returned exceptionfailure - The causal exceptionCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.