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