public class java.lang
IllegalMonitorStateException


Hide details Login
Java SE 6
  
Extends: Throwable > Exception > RuntimeException

Thrown to indicate that a thread has attempted to wait on an object's monitor or to notify other threads waiting on an object's monitor without owning the specified monitor.
version1.13, 11/17/05
sinceJDK1.0
See also notify(), notifyAll(), wait(), wait(long), wait(long, int)

Constructors
public IllegalMonitorStateException()
Constructs an IllegalMonitorStateException with no detail message.
public IllegalMonitorStateException(String s)
Constructs an IllegalMonitorStateException with the specified detail message.
sthe detail message.