org.pf.util
Interface ExceptionHandler


public interface ExceptionHandler

Whenever a component doesn't want to throw every exception and declare them in their methods it is useful to give the exceptions to an exception handler. This handler can log or ignore the exception, or even throw a runtime exception or exit the program.

Some Programmer's Friend components are supporting this mechanism. They all pass their exceptions to an exception handler if one was set. Otherwise the they just swallow the exceptions. This interface must be implemented by every handler that's intended to be used with a PF component.

Version:
1.1
Author:
Manfred Duchrow

Method Summary
 void handleException(java.lang.Throwable throwable)
          Handle the given exception in an apropriate way.
 

Method Detail

handleException

void handleException(java.lang.Throwable throwable)
Handle the given exception in an apropriate way.

Parameters:
throwable - The exception that occured somewhere