konspire.common
Class NamedErrorHandlingThread

java.lang.Object
java.lang.Thread
konspire.common.ErrorHandlingThread
konspire.common.NamedErrorHandlingThread
- All Implemented Interfaces:
- java.lang.Runnable
- public abstract class NamedErrorHandlingThread
- extends ErrorHandlingThread
Thread class that catches Throwables thrown by the run
methods of all subclasses. Throwables are reported to the
error handling framework. All subclassing Threads are
required to pass in a name for themselves.
Note that all constructors require a non-null name to be passed in.
Thus, other Thread constructors are not overridden.
| Nested classes inherited from class java.lang.Thread |
java.lang.Thread.UncaughtExceptionHandler |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
NamedErrorHandlingThread
protected NamedErrorHandlingThread(java.lang.String inName)
- Constructs a
NamedErrorHandlingThread.
NamedErrorHandlingThread
protected NamedErrorHandlingThread(java.lang.Runnable inRunnable,
java.lang.String inName)
- Constructs a
NamedErrorHandlingThread, specifying
a Runnable.
NamedErrorHandlingThread
protected NamedErrorHandlingThread(java.lang.ThreadGroup inGroup,
java.lang.String inName)
- Constructs a
NamedErrorHandlingThread, specifying
a ThreadGroup.
NamedErrorHandlingThread
protected NamedErrorHandlingThread(java.lang.ThreadGroup inGroup,
java.lang.Runnable inRunnable,
java.lang.String inName)
- Constructs a
NamedErrorHandlingThread, specifying
a Runnable and a ThreadGroup.
checkName
private static java.lang.String checkName(java.lang.String inName)
- Checks that a
Thread name is non-null.
Throws an IllegalArgumentException if the name is
null.
Note that the exception is not declared by this method.