Top Description Methods
org.hibernate.resource.transaction.backend.jta.internal.synchronization

public Interface ExceptionMapper

extends Serializable
Known Direct Implementers
org.hibernate.jpa.internal.ExceptionMapperLegacyJpaImpl, org.hibernate.internal.ExceptionMapperStandardImpl
Imports
java.io.Serializable, javax.transaction.SystemException, org.hibernate.engine.spi.SessionImplementor

A pluggable strategy for defining how the javax.transaction.Synchronization registered by Hibernate handles exceptions.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public RuntimeException

Returns:

The appropriate exception to throw
mapManagedFlushFailure
(String
The message to use for the returned exception
message
,
RuntimeException
The causal exception
failure
,
SessionImplementor session)

Deprecated as a consequence of SessionImplementor being deprecated.
Map an exception encountered during a managed flush to the appropriate runtime-based exception.
public RuntimeException

Returns:

The appropriate exception to throw
mapStatusCheckFailure
(String
The message to use for the returned exception
message
,
SystemException
The causal exception
systemException
,
SessionImplementor sessionImplementor)

Deprecated as a consequence of SessionImplementor being deprecated.
Map a JTA javax.transaction.SystemException to the appropriate runtime-based exception.

Method Detail

mapManagedFlushFailureback to summary
public RuntimeException mapManagedFlushFailure(String message, RuntimeException failure, SessionImplementor session)

Deprecated

as a consequence of SessionImplementor being deprecated. See corresponding docs for further information.

Map an exception encountered during a managed flush to the appropriate runtime-based exception.

Parameters
message:String

The message to use for the returned exception

failure:RuntimeException

The causal exception

Returns:RuntimeException

The appropriate exception to throw

mapStatusCheckFailureback to summary
public RuntimeException mapStatusCheckFailure(String message, SystemException systemException, SessionImplementor sessionImplementor)

Deprecated

as a consequence of SessionImplementor being deprecated. See corresponding docs for further information.

Map a JTA javax.transaction.SystemException to the appropriate runtime-based exception.

Parameters
message:String

The message to use for the returned exception

systemException:SystemException

The causal exception

Returns:RuntimeException

The appropriate exception to throw