Save This Page
Home » apache-harmony-6.0-src-r917296-snapshot » java » lang » [javadoc | source]
java.lang
public class: IllegalStateException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         java.lang.RuntimeException
            java.lang.IllegalStateException

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    ConnectionPendingException, FormatterClosedException, NoConnectionPendingException, NonReadableChannelException, NotYetBoundException, AlreadyConnectedException, CancellationException, IllegalComponentStateException, CancelledKeyException, ClosedSelectorException, IllegalBlockingModeException, InvalidMarkException, NonWritableChannelException, InvalidDnDOperationException, OverlappingFileLockException, NotYetConnectedException

Thrown when an action is attempted at a time when the virtual machine is not in the correct state.
Constructor:
 public IllegalStateException() 
 public IllegalStateException(String detailMessage) 
    Constructs a new {@code IllegalStateException} with the current stack trace and the specified detail message.
    Parameters:
    detailMessage - the detail message for this exception.
 public IllegalStateException(Throwable cause) 
    Constructs a new {@code IllegalStateException} with the current stack trace and the specified cause.
    Parameters:
    cause - the cause of this exception, may be {@code null}.
    since: 1.5 -
 public IllegalStateException(String message,
    Throwable cause) 
    Constructs a new {@code IllegalStateException} with the current stack trace, the specified detail message and the specified cause.
    Parameters:
    message - the detail message for this exception.
    cause - the cause of this exception.
    since: 1.5 -
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait