com.glaivestone.javax.execution
Interface ExceptionHandler


public interface ExceptionHandler

An exception handler is used to configure exception handling behavior.

Author:
Deb Lewis

Method Summary
 boolean canHandle(java.lang.Throwable anException)
          Answer whether the receiver can handle the given exception.
 java.lang.Object handle(java.lang.Throwable anException, java.lang.Object context)
          Handle the exception processing of the given exception.
 

Method Detail

canHandle

public boolean canHandle(java.lang.Throwable anException)
Answer whether the receiver can handle the given exception.


handle

public java.lang.Object handle(java.lang.Throwable anException,
                               java.lang.Object context)
Handle the exception processing of the given exception. Context information about the interrupted operation can optionally be provided to the handler.

Typically terminates execution by throwing an exception, but may return if continuable handler behavior is desired.


GFL 1.1 API