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.IllegalStateExceptionpublic 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 ); } Subclassesjava.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 ByToo many methods to list. |