Package java.lang Previous
Previous
Java API
Java API
Index
Index
Next
Next

Class IllegalMonitorStateException

Constructors

public  class  java.lang.IllegalMonitorStateException
    extends  java.lang.RuntimeException  
{
        // Constructors
    public IllegalMonitorStateException();	
    public IllegalMonitorStateException(String  s);	
}

Thrown to indicate that a thread has attempted to wait on an object's monitor (see wait) or to notify other threads waiting on an object's monitor (see notify and notifyAll) without owning the specified monitor.


Constructors


IllegalMonitorStateException

public IllegalMonitorStateException() 

Constructs an IllegalMonitorStateException with no detail message.


IllegalMonitorStateException

public IllegalMonitorStateException(String  s) 

Constructs an IllegalMonitorStateException with the specified detail message.

ParameterDescription
s the detail message



Top© 1996 Sun Microsystems, Inc. All rights reserved.