Package java.lang
Class IllegalStateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AlreadyConnectedException,ASN1ParsingException,CancellationException,CancelledKeyException,ClosedSelectorException,ConnectionPendingException,DecoderException,EncoderException,FormatterClosedException,IllegalBlockingModeException,InvalidMarkException,NoConnectionPendingException,NonReadableChannelException,NonWritableChannelException,NotYetBoundException,NotYetConnectedException,OverlappingFileLockException
public class IllegalStateException extends RuntimeException
Thrown when an action is attempted at a time when the VM is not
in the correct state.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description IllegalStateException()Constructs a newIllegalStateExceptionthat includes the current stack trace.IllegalStateException(String detailMessage)Constructs a newIllegalStateExceptionwith the current stack trace and the specified detail message.IllegalStateException(String message, Throwable cause)Constructs a newIllegalStateExceptionwith the current stack trace, the specified detail message and the specified cause.IllegalStateException(Throwable cause)Constructs a newIllegalStateExceptionwith the current stack trace and the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IllegalStateException
public IllegalStateException()Constructs a newIllegalStateExceptionthat includes the current stack trace. -
IllegalStateException
Constructs a newIllegalStateExceptionwith the current stack trace and the specified detail message.- Parameters:
detailMessage- the detail message for this exception.
-
IllegalStateException
Constructs a newIllegalStateExceptionwith 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
-
IllegalStateException
Constructs a newIllegalStateExceptionwith the current stack trace and the specified cause.- Parameters:
cause- the cause of this exception, may benull.- Since:
- 1.5
-