Name
IllegalStateException
Synopsis
Signals that a method has been invoked on an object that is not in an appropriate state to perform the requested operation.
Figure 10-28. java.lang.IllegalStateException
public class IllegalStateException extends RuntimeException { // Public Constructors public IllegalStateException( ); 5.0 public IllegalStateException(Throwable cause); public IllegalStateException(String s); 5.0 public IllegalStateException(String message, Throwable cause); }
Subclasses
java.nio.InvalidMarkException,
java.nio.channels.AlreadyConnectedException,java.nio.channels.CancelledKeyException,
java.nio.channels.ClosedSelectorException,java.nio.channels.ConnectionPendingException,
java.nio.channels.IllegalBlockingModeException,java.nio.channels.NoConnectionPendingException,
java.nio.channels.NonReadableChannelException,
java.nio.channels.NonWritableChannelException,
java.nio.channels.NotYetBoundException,java.nio.channels.NotYetConnectedException,
java.nio.channels.OverlappingFileLockException,java.util.FormatterClosedException,
java.util.concurrent.CancellationException
Thrown By
Too many methods to list.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access