Packages This Package Prev Next Index
§1.34 Class IllegalThreadStateException
public class java.lang.IllegalThreadStateException
extends java.lang.IllegalArgumentException (I-§1.32)
{
// Constructors
public IllegalThreadStateException(); §1.34.1
public IllegalThreadStateException(String s); §1.34.2
}
Thrown to indicate that a thread is not in an appropriate state for the requested operation.
See, for example, the suspend (I-§1.19.39) and resume (I-§1.19.29) methods in class Thread.
IllegalThreadStateException
public IllegalThreadStateException()
- Constructs an IllegalThreadStateException with no detail message.
IllegalThreadStateException
public IllegalThreadStateException(String s)
- Constructs an IllegalThreadStateException with the specified detail message.
- Parameters:
s
- the detail message
Packages This Package Prev Next Index
Java API Document (HTML generated by dkramer on April 22, 1996)
Copyright © 1996 Sun Microsystems, Inc.
All rights reserved
Please send any comments or corrections to doug.kramer@sun.com