com.emarsys.ecommon.exceptions.handling
Interface ExceptionHandler<E extends java.lang.Exception,T extends java.lang.Exception>

Type Parameters:
E - - the type (boundary) of the Exception to handle
T - - the type (boundary) of Exceptions that might be (re-)thrown by the ExceptionHandler

All Known Subinterfaces:
SymmetricExceptionHandler<E>

public interface ExceptionHandler<E extends java.lang.Exception,T extends java.lang.Exception>

An ExceptionHandler encapsulates a very simple and naive exception handling mechanism.

Its two type parameters describe the concrete Exception types that could be handled and the ones that could be rethrown.

NOTE: the whole pluggable exception handling (PEH) module is highly experimental and still under heavy development, don't use it in production code unless you know what you're doing!

Author:
Michael "kULO" Kulovits

See Also:
ExceptionHandling,


Method Summary
 void handleException(E exception)
          Handles Exceptions of type E and might rethrow and Exceptions of type T.
 

Method Detail

handleException

void handleException(E exception)
                     throws T extends java.lang.Exception
Handles Exceptions of type E and might rethrow and Exceptions of type T.

Parameters:
exception -
Throws:
T
T extends java.lang.Exception


Copyright © 2010 emarsys AG. All Rights Reserved.