Package java.lang |
![]() Previous |
![]() Java API |
![]() Index |
![]() Next |
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.
public IllegalMonitorStateException()Constructs an IllegalMonitorStateException with no detail message.
public IllegalMonitorStateException(String s)Constructs an IllegalMonitorStateException with the specified detail message.
Parameter Description s the detail message