public class ExceptionMapperStandardImpl extends Object implements ExceptionMapper
| Modifier and Type | Field and Description |
|---|---|
static ExceptionMapper |
INSTANCE |
| Constructor and Description |
|---|
ExceptionMapperStandardImpl() |
| Modifier and Type | Method and 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 sessionImplementor)
Map a JTA
SystemException to the appropriate runtime-based exception. |
public static final ExceptionMapper INSTANCE
public RuntimeException mapStatusCheckFailure(String message, SystemException systemException, SessionImplementor sessionImplementor)
ExceptionMapperSystemException to the appropriate runtime-based exception.mapStatusCheckFailure in interface ExceptionMappermessage - The message to use for the returned exceptionsystemException - The causal exceptionpublic RuntimeException mapManagedFlushFailure(String message, RuntimeException failure, SessionImplementor session)
ExceptionMappermapManagedFlushFailure in interface ExceptionMappermessage - The message to use for the returned exceptionfailure - The causal exceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.