aicas logoJamaica 6.4 release 1

java.lang
Class IllegalStateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalStateException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AlreadyConnectedException, CancellationException, CancelledKeyException, ClosedSelectorException, ConnectionPendingException, FormatterClosedException, IllegalBlockingModeException, IllegalComponentStateException, InvalidDnDOperationException, InvalidMarkException, NoConnectionPendingException, NonReadableChannelException, NonWritableChannelException, NotYetBoundException, NotYetConnectedException, OverlappingFileLockException

public class IllegalStateException
extends RuntimeException

IllegalStateException is a runtime exception that is thrown when a method is called at an inapropriate time, e.g. before an object is initialized.

Since:
1.1
See Also:
Serialized Form

Constructor Summary
IllegalStateException()
          Constructor for an IllegalStateException with no detail message.
IllegalStateException(String s)
          Constructor for an IllegalStateException with given detail message.
IllegalStateException(String s, Throwable ex)
          Constructor for an IllegalStateException with given detail message and cause.
IllegalStateException(Throwable ex)
          Constructor for an IllegalStateException with given cause and detail message set to ex.toString().
 
Method Summary
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalStateException

public IllegalStateException()
Constructor for an IllegalStateException with no detail message.


IllegalStateException

public IllegalStateException(String s)
Constructor for an IllegalStateException with given detail message.

ensures

    (s != null IMPLIES getMessage().equals(s));
 

Parameters:
s - the detail message.

IllegalStateException

public IllegalStateException(Throwable ex)
Constructor for an IllegalStateException with given cause and detail message set to ex.toString().

ensures

    (ex != null IMPLIES getCause() == ex && getMessage().equals(ex.toString()));
 

Parameters:
ex - the cause why this exception was created or null if none.
Since:
1.5

IllegalStateException

public IllegalStateException(String s,
                             Throwable ex)
Constructor for an IllegalStateException with given detail message and cause.

ensures

    (s  != null IMPLIES getMessage().equals(s),
     ex != null IMPLIES getCause() == ex);
 

Parameters:
s - the detail message.
ex - the cause why this exception was created or null if none.
Since:
1.5

aicas logoJamaica 6.4 release 1

aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2015 aicas GmbH. All Rights Reserved.