public interface ExceptionMapper
extends java.io.Serializable
Synchronization
registered by Hibernate handles
exceptions.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. |
java.lang.RuntimeException mapStatusCheckFailure(java.lang.String message, javax.transaction.SystemException systemException, SessionImplementor sessionImplementor)
SystemException
to the appropriate runtime-based exception.message
- The message to use for the returned exceptionsystemException
- The causal exceptionjava.lang.RuntimeException mapManagedFlushFailure(java.lang.String message, java.lang.RuntimeException failure, SessionImplementor session)
message
- The message to use for the returned exceptionfailure
- The causal exceptionCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.