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
All Implemented Interfaces:
Serializable

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.

See Also:
Serialized Form

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

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