|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.elca.el4j.services.gui.swing.exceptions.Exceptions
public final class Exceptions
This Exception Handler Manager allows to register Exception Handlers. If an uncaught exception occurs,
the handlers get executed in the order of their priority until a handler signals that no further handler
should be called (handle() return true
). In case that no handlers get executed, a stack
trace will be printed to std err.
Constructor Summary | |
---|---|
Exceptions()
|
Method Summary | |
---|---|
void |
addHandler(Handler handler)
Add an exception handler. |
static Exceptions |
getInstance()
|
void |
handle(Exception e)
Execute all Handlers that recognize the given Exception (in the order of their priority) until a handler signals to stop. |
void |
handle(Throwable t)
Handler for AWT exceptions. |
void |
removeHandler(Handler handler)
Remove an exception handler. |
void |
uncaughtException(Thread t,
Throwable e)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Exceptions()
Method Detail |
---|
public static Exceptions getInstance()
public void addHandler(Handler handler)
handler
- the handler to addpublic void removeHandler(Handler handler)
handler
- the handler to addpublic void handle(Exception e)
e
- the exception to handlepublic void handle(Throwable t)
t
- a Throwablepublic void uncaughtException(Thread t, Throwable e)
uncaughtException
in interface Thread.UncaughtExceptionHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |