|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.huihoo.jfox.ejb.exception.ThrowableHandler
A static singleton that handles processing throwables that otherwise would be ignored or dumped to System.err.
| Nested Class Summary | |
static interface |
ThrowableHandler.Type
Container for throwable types. |
| Constructor Summary | |
ThrowableHandler()
|
|
| Method Summary | |
static void |
add(int type,
java.lang.Throwable t)
/////////////////////////////////////////////////////////////////////// Throwable Processing // /////////////////////////////////////////////////////////////////////// Add a throwable that is to be handled. |
static void |
add(java.lang.Throwable t)
Add a throwable that is to be handled with unknown type. |
static void |
addThrowableListener(ThrowableListener listener)
Add a ThrowableListener to the listener list. |
static void |
removeThrowableListener(ThrowableListener listener)
Remove a ThrowableListener from the listener list. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ThrowableHandler()
| Method Detail |
public static void addThrowableListener(ThrowableListener listener)
listener - ThrowableListener to add to the list.public static void removeThrowableListener(ThrowableListener listener)
listener - ThrowableListener to remove from the list.
public static void add(int type,
java.lang.Throwable t)
type - The type off the throwable.t - Throwable to be handled.public static void add(java.lang.Throwable t)
t - Throwable to be handled.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||