java.lang
Class IllegalStateException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjava.lang.IllegalStateException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FormatterClosedException

public class IllegalStateException
extends RuntimeException

This runtime exception is thrown when an action is attempted at a time when the virtual machine is not in the correct state.

See Also:
Serialized Form

Constructor Summary
IllegalStateException()
          Constructs a new instance of this class with its walkback filled in.
IllegalStateException(java.lang.String detailMessage)
          Constructs a new instance of this class with its walkback and message filled in.
IllegalStateException(java.lang.String message, Throwable cause)
          Constructs a new instance with a message and cause.
IllegalStateException(Throwable cause)
          Constructs a new instance with a cause.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalStateException

public IllegalStateException()
Constructs a new instance of this class with its walkback filled in.


IllegalStateException

public IllegalStateException(java.lang.String detailMessage)
Constructs a new instance of this class with its walkback and message filled in.

Parameters:
detailMessage - String The detail message for the exception.

IllegalStateException

public IllegalStateException(java.lang.String message,
                             Throwable cause)

Constructs a new instance with a message and cause.

Parameters:
message - The message to assign to this exception.
cause - The optional cause of this exception; may be null.
Since:
1.5

IllegalStateException

public IllegalStateException(Throwable cause)

Constructs a new instance with a cause.

Parameters:
cause - The optional cause of this exception; may be null.
Since:
1.5