Forward Computing and Control Pty. Ltd.
Threads Package V1.0.3

2005/04/11

au.com.forward.threads
Class ThreadException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.InterruptedException
              extended by au.com.forward.threads.ThreadException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ThreadInterruptedException

public class ThreadException
extends java.lang.InterruptedException

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 ThreadListeners 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 ThreadListeners 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.

Author:
matthew ford
See Also:
Serialized Form

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

Copyright ©2002-5, Forward Computing and Control Pty. Ltd
ACN 003 669 994   NSW Australia,   All Rights Reserved.