java.lang
Class IllegalThreadStateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
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.
IllegalThreadStateException
public IllegalThreadStateException()
- Create an exception without a message.
IllegalThreadStateException
public IllegalThreadStateException(String s)
- Create an exception with a message.
- Parameters:
s
- the message