|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--ix.util.CatchingThread
A thread that catches and reports errors or exceptions.
| Field Summary | |
(package private) java.lang.Runnable |
innerRunnable
|
| Fields inherited from class java.lang.Thread |
inheritableThreadLocals, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, threadLocals |
| Constructor Summary | |
CatchingThread()
|
|
CatchingThread(java.lang.Runnable innerRunnable)
|
|
| Method Summary | |
protected void |
handleException(java.lang.Throwable except)
Uses SwingUtilities.invokeLater to call the reportException method in the event-handling thread. |
void |
innerRun()
Calls the run() method of the innerRunnable passed to the constructor, if innerRunnable is non-null; otherwise does nothing. |
protected void |
reportException(java.lang.Throwable except)
Puts up a description of the exception in a message dialog. |
void |
run()
Calls innerRun() inside a catch that calls the handleException method on any Throwable caught. |
| Methods inherited from class java.lang.Thread |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
java.lang.Runnable innerRunnable
| Constructor Detail |
public CatchingThread()
public CatchingThread(java.lang.Runnable innerRunnable)
| Method Detail |
public void run()
run in class java.lang.Threadpublic void innerRun()
protected void handleException(java.lang.Throwable except)
protected void reportException(java.lang.Throwable except)
Debug.describeException(Throwable),
Strings.foldLongLine(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||