Name
IllegalThreadStateException
Synopsis
This exception is thrown when an operation is performed on a
Thread
that is not in the proper state. In J2SE, there are
several circumstances in which this exception is thrown. In CLDC, however,
most of these are not possible because the Thread
operations
that throw this exception simply do not exist. The only cause for this
exception in CLDC is calling the start()
method on a
Thread
that has already been started.
This class is the same as its J2SE equivalent, apart from its inability to be
serialized.
public class IllegalThreadStateException extends IllegalArgumentException { // Public Constructors public IllegalThreadStateException(); public IllegalThreadStateException( String s); }
Get J2ME in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.