Evaluating Software Design Patterns
— the "Gang of Four" patterns implemented in Java 6

dk.rode.thesis.meta.util
Interface ErrorHandler

All Known Implementing Classes:
ObserverManager.NotificationPolicy

public interface ErrorHandler

An error handler can decide whether or not a given type of error is manageable or not using the handle(Throwable) method. If manageable, true will be returned, otherwise false.

Implementation notes:
This is an application of the Strategy pattern, to be used in object composition.

Author:
Gunni Rode / rode.dk

Method Summary
 boolean handle(Throwable throwable)
          Returns true if throwable can be managed by this error handler, false if not.
 

Method Detail

handle

boolean handle(Throwable throwable)
Returns true if throwable can be managed by this error handler, false if not.

Parameters:
throwable - The error; can be null, in which case true is returned.
Returns:
True if throwable can be managed by this error handler, false if not.

Gunni Rode / rode.dk

Feel free to use and/or modify the Java 6 source code developed for this thesis AT YOUR OWN RISK, but note that the source code comes WITHOUT ANY — and I do mean WITHOUT ANY — form of warranty WHAT SO EVER!

The original thesis and source code are available at rode.dk/thesis.