|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rad.util.ExceptionHandler
public final class ExceptionHandler
The ExceptionHandler
is the global handler for program
exceptions. All exceptions should handled with raise(Throwable)
.
Method Summary | |
---|---|
static void |
addExceptionListener(IExceptionListener pListener)
Adds a listener to the handler. |
static void |
addExceptionListener(IExceptionListener pListener,
int pIndex)
Adds a listener to the handler, at the given position. |
static IExceptionListener[] |
getListeners()
Returns all registered exception listeners. |
static void |
raise(Throwable pThrowable)
Notifies the handler that an exception occured. |
static void |
removeExceptionListener(IExceptionListener pListener)
Removes a listener from the handler. |
static void |
show(Throwable pThrowable)
Notifies the handler that an exception occured. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void raise(Throwable pThrowable)
pThrowable
- the exception
SilentAbortException
- is thrown anyway to break code flow.public static void show(Throwable pThrowable)
pThrowable
- the exceptionpublic static void addExceptionListener(IExceptionListener pListener)
pListener
- the listenerpublic static void addExceptionListener(IExceptionListener pListener, int pIndex)
pListener
- the listenerpIndex
- the index or -1
to add at the end of the listpublic static void removeExceptionListener(IExceptionListener pListener)
pListener
- the listenerpublic static IExceptionListener[] getListeners()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |