Top Description Methods
org.hibernate.transaction.synchronization

public Interface ExceptionMapper

Imports
javax.transaction.SystemException

TODO : javadoc
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
)

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
)

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

Method Detail

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

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)

Map a JTA 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