org.jwarp.common
Interface IExceptionListener
- public interface IExceptionListener
Basic interface for classes which wants to handler exceptions. Thus services can define open exception handling interfaces.
- Version:
- 1.0
- Author:
- Anatole Tresch
|
Field Summary |
static short |
HANDLED_ALL
Constant: all exceptions were handled successfully. |
static short |
HANDLED_NONE
Constant: no exceptions could be handled successfully. |
static short |
HANDLED_PARTIAL
Constant: some exceptions were handled successfully. |
|
Method Summary |
short |
handleException(java.lang.Exception e,
java.lang.Object source)
This is the only method an exception handler must implement. |
HANDLED_ALL
public static final short HANDLED_ALL
- Constant: all exceptions were handled successfully.
HANDLED_PARTIAL
public static final short HANDLED_PARTIAL
- Constant: some exceptions were handled successfully.
HANDLED_NONE
public static final short HANDLED_NONE
- Constant: no exceptions could be handled successfully.
handleException
public short handleException(java.lang.Exception e,
java.lang.Object source)
- This is the only method an exception handler must implement.
- Parameters:
The - exception occurred actuallyThe - source object who has generated the exeption- Returns:
- The code as far all exceptions could be handled.