org.hibernate.transaction.synchronization
Interface ExceptionMapper


public interface ExceptionMapper

TODO : javadoc

Author:
Steve Ebersole

Method Summary
 java.lang.RuntimeException mapManagedFlushFailure(java.lang.String message, java.lang.RuntimeException failure)
          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)
          Map a JTA SystemException to the appropriate runtime-based exception.
 

Method Detail

mapStatusCheckFailure

java.lang.RuntimeException mapStatusCheckFailure(java.lang.String message,
                                                 javax.transaction.SystemException systemException)
Map a JTA SystemException to the appropriate runtime-based exception.

Parameters:
message - The message to use for the returned exception
systemException - The causal exception
Returns:
The appropriate exception to throw

mapManagedFlushFailure

java.lang.RuntimeException mapManagedFlushFailure(java.lang.String message,
                                                  java.lang.RuntimeException failure)
Map an exception encountered during a managed flush to the appropriate runtime-based exception.

Parameters:
message - The message to use for the returned exception
failure - The causal exception
Returns:
The appropriate exception to throw


Copyright © 2012. All Rights Reserved.