ch.elca.el4j.services.gui.swing.exceptions
Interface Handler
public interface Handler
The interface Exception handlers must implement. It has two methods that
contain the logic for each of its 2 concerns: (1) recognizing Exceptions
it can handle and (2) handling those Exceptions appropriately.
- Author:
- Stefan Wismer (SWI)
- File-location:
- Handler
- Last check-in date:
- 2009-08-04 14:35:53 +0200 (Di, 04. Aug 2009) by swismer for revision 3875
recognize
boolean recognize(Exception e)
- Parameters:
e
- the thrown exception
- Returns:
- true if this Handler can handle the given
Exception; false otherwise.
getPriority
int getPriority()
- Returns:
- the priority of this handler. The larger the priority value to earlier it gets executed.
handle
boolean handle(Exception e)
- React to the given Exception in any way seen fit. This may include
notifying the user, writing to a log, or any other valid logic.
- Parameters:
e
- the thrown exception
- Returns:
- whether exception handling should be stopped (
true
) or the next handler should be
executed (false
).
Copyright © 2005-2011 ELCA. All Rights Reserved.