aicas logoJamaica 6.1 release 1

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

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.

See Also:
Serialized Form

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

IllegalMonitorStateException

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


IllegalMonitorStateException

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

ensures

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

Parameters:
s - the detail message.

aicas logoJamaica 6.1 release 1

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