public class ExceptionMapperStandardImpl extends java.lang.Object implements ExceptionMapper
Modifier and Type | Field and Description |
---|---|
static ExceptionMapper |
INSTANCE |
Constructor and Description |
---|
ExceptionMapperStandardImpl() |
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 sessionImplementor)
Map a JTA
SystemException to the appropriate runtime-based exception. |
public static final ExceptionMapper INSTANCE
public java.lang.RuntimeException mapStatusCheckFailure(java.lang.String message, javax.transaction.SystemException systemException, SessionImplementor sessionImplementor)
ExceptionMapper
SystemException
to the appropriate runtime-based exception.mapStatusCheckFailure
in interface ExceptionMapper
message
- 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)
ExceptionMapper
mapManagedFlushFailure
in interface ExceptionMapper
message
- The message to use for the returned exceptionfailure
- The causal exceptionCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.