java.lang
Class IllegalMonitorStateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalMonitorStateException
All Implemented Interfaces:
Serializable

public class IllegalMonitorStateException
extends RuntimeException

Thrown when a thread attempts to wait or notify on a monitor that it does not own (ie. it has not synchronized on the object). For example:

 void m() {
   notify();
 }
 

See Also:
Serialized Form

Constructor Summary
IllegalMonitorStateException()
          Create an exception without a message.
IllegalMonitorStateException(String s)
          Create an exception with a 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

IllegalMonitorStateException

public IllegalMonitorStateException()
Create an exception without a message.


IllegalMonitorStateException

public IllegalMonitorStateException(String s)
Create an exception with a message.

Parameters:
s - the message