|
![]() |
|||||||||
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.IllegalMonitorStateException
public class IllegalMonitorStateException
IllegalMonitorStateException is thrown when an attempt is made to call wait or notify on an object without owning the monitor assiciated with this object.
It is also thrown by the VM if an attempt is made to exit a monitor that has not been entered by the current thread. This error condition cannot occur by legal Java code, but it may occur by hand-written Java byte code.
Constructor Summary | |
---|---|
IllegalMonitorStateException()
Constructor for an IllegalMonitorStateException with no detail message. |
|
IllegalMonitorStateException(String s)
Constructor for an IllegalMonitorStateException with given detail message. |
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 IllegalMonitorStateException()
public IllegalMonitorStateException(String s)
ensures
(s != null IMPLIES getMessage().equals(s));
s
- the detail message.
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |