|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
public class IllegalStateException
IllegalStateException is a runtime exception that is thrown when a method is called at an inapropriate time, e.g. before an object is initialized.
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 |
---|
public IllegalStateException()
public IllegalStateException(String s)
ensures
(s != null IMPLIES getMessage().equals(s));
s
- the detail message.public IllegalStateException(Throwable ex)
ensures
(ex != null IMPLIES getCause() == ex && getMessage().equals(ex.toString()));
ex
- the cause why this exception was created or null if
none.public IllegalStateException(String s, Throwable ex)
ensures
(s != null IMPLIES getMessage().equals(s), ex != null IMPLIES getCause() == ex);
s
- the detail message.ex
- the cause why this exception was created or null if
none.
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |