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.
Get Java in a Nutshell, 5th Edition 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.