java.lang
Class IllegalMonitorStateException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--java.lang.IllegalMonitorStateException

public class IllegalMonitorStateException
extends RuntimeException

Signals that a monitor operation has been attempted when the monitor is in an invalid state. For example, trying to notify a monitor that you do not own would invoke this class.


Constructor Summary
IllegalMonitorStateException()
          Constructs an IllegalMonitorStateException with no detail message.
IllegalMonitorStateException(String s)
          Constructs an IllegalMonitorStateException with the specified detail message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getMessage, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalMonitorStateException

public IllegalMonitorStateException()
Constructs an IllegalMonitorStateException with no detail message. A detail message is a String that describes this particular exception.


IllegalMonitorStateException

public IllegalMonitorStateException(String s)
Constructs an IllegalMonitorStateException with the specified detail message. A detail message is a String that describes this particular exception.

Parameters:
s - the String that contains a detailed message