|
Forward Computing and Control Pty. Ltd. Threads Package V1.0.3 2005/04/11 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.InterruptedException
au.com.forward.threads.ThreadException
public class ThreadException
An exception of this class, or its sub-class ThreadInterruptedException
,
is thrown by the ThreadReturn.join()
methods when
the thread being joined saves a Throwable
.
It extends InterruptedException
which
is thrown by Thread.join()
so you do not need to change your throws
specifications
when replacing thread.join()
with ThreadReturn.join()
.
See ThreadReturn
for details.
If the exception stored is not an InterruptedException
or
a ClosedByInterruptException
, then this exception is also passed in a ThreadEvent
to the
threadError(ThreadEvent e)
methods, if there are ThreadListener
s
for the thread being joined.
If the exception stored is an InterruptedException
or
a ClosedByInterruptException
, then a sub-class of this exception, ThreadInterruptedException
,
is passed in a ThreadEvent
to the threadInterrupted(ThreadEvent e)
methods, if there are ThreadListener
s
for the thread being joined.
The name of the thread being joined is stored in this exception's message and the thread's Throwable
is
stored as the cause of this exception.
You can use StackTrace.toString(Throwable e)
to get this exception and its cause
as a String
There is no public constructor for this class as it is only used by
ThreadReturn
.
Method Summary |
---|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
|
Forward Computing and Control Pty. Ltd. Threads Package V1.0.3 2005/04/11 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |