Package java.lang |
![]() Previous |
![]() Java API |
![]() Index |
![]() Next |
public class java.lang.IllegalThreadStateException extends java.lang.IllegalArgumentException { // Constructors public IllegalThreadStateException(); public IllegalThreadStateException(String s); }
Thrown to indicate that a thread is not in an appropriate state for the requested operation. See, for example, the suspend and resume methods in class Thread.
public IllegalThreadStateException()Constructs an IllegalThreadStateException with no detail message.
public IllegalThreadStateException(String s)Constructs an IllegalThreadStateException with the specified detail message.
Parameter Description s the detail message