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

2005/04/11

au.com.forward.threads
Class ThreadInterruptedException

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
                  extended by au.com.forward.threads.ThreadInterruptedException
All Implemented Interfaces:
java.io.Serializable

public class ThreadInterruptedException
extends ThreadException

An exception of this class is thrown by the ThreadReturn.join() methods when the thread being joined throws an InterruptedException or a ClosedByInterruptException.  These exceptions are also passed in a ThreadEvent to the threadInterrupted(ThreadEvent e) methods, if there are ThreadListeners for the thread being joined.  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.

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.