|
Evaluating Software Design Patterns — the "Gang of Four" patterns implemented in Java 6 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
---|---|
boolean |
handle(Throwable throwable)
Returns true if throwable can be managed by this
error handler, false if not. |
Method Detail |
---|
boolean handle(Throwable throwable)
throwable
can be managed by this
error handler, false if not.
throwable
- The error; can be null, in which case true
is returned.
throwable
can be managed by this
error handler, false if not.
|
Gunni Rode / rode.dk | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |