java.lang
Class IllegalThreadStateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by java.lang.IllegalThreadStateException

public class IllegalThreadStateException
extends IllegalArgumentException

Thrown When trying to manipulate a Thread which is in an inappropriate state. Since the documentation suggests that this can happen with Thread.suspend or Thread.resume, but these two methods are deprecated, this exception is likely very rare.


Constructor Summary
IllegalThreadStateException()
          Create an exception without a message.
IllegalThreadStateException(String s)
          Create an exception with a message.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
getCause, getLocalizedMessage, getMessage, initCause, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalThreadStateException

public IllegalThreadStateException()
Create an exception without a message.


IllegalThreadStateException

public IllegalThreadStateException(String s)
Create an exception with a message.

Parameters:
s - the message