jimmc.util
Interface ExceptionHandler
- All Known Implementing Classes:
- JsFrame
- public interface ExceptionHandler
An interface to handle exceptions.
Method Summary |
void |
afterAction(java.lang.Object source)
Called after an action when no exception was thrown. |
void |
beforeAction(java.lang.Object source)
Called before an action which may generate an exception. |
void |
handleException(java.lang.Object source,
java.lang.Throwable exception)
Deal with an exception. |
beforeAction
public void beforeAction(java.lang.Object source)
- Called before an action which may generate an exception.
- Parameters:
source
- The source of the action.
afterAction
public void afterAction(java.lang.Object source)
- Called after an action when no exception was thrown.
- Parameters:
source
- The source of the action.
handleException
public void handleException(java.lang.Object source,
java.lang.Throwable exception)
- Deal with an exception.
- Parameters:
exception
- The exception or other throwable to handle.