net.sourceforge.hiveutils.service
Interface ExceptionMapper

All Known Implementing Classes:
DefaultExceptionMapper, SqlExceptionMapper

public interface ExceptionMapper

Interface used by AdapterBuilderFactory to translate exceptions thrown by service implementations on-the-fly.

It may be implemented directly by application developers and passed in parameters in service implementation declaration. A simple default implementation exists and is enough for most situations.

Author:
Jean-Francois Poilpret

Method Summary
 java.lang.Throwable translate(java.lang.Throwable t)
          Converts a Throwable into another.
 

Method Detail

translate

java.lang.Throwable translate(java.lang.Throwable t)
Converts a Throwable into another.

Parameters:
t - Throwable that is to be converted
Returns:
the new Throwable that replaces t