APIdia Launch Partner
Top Description Fields Constructors
java.lang

public Class IllegalMonitorStateException

extends RuntimeException
Class Inheritance

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.
Since
1.0
See Also
java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int)

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
IllegalMonitorStateException()

Constructs an IllegalMonitorStateException with no detail message.

public
IllegalMonitorStateException(String
the detail message.
s
)

Constructs an IllegalMonitorStateException with the specified detail message.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Annotations
@Serial

Constructor Detail

IllegalMonitorStateExceptionback to summary
public IllegalMonitorStateException()

Constructs an IllegalMonitorStateException with no detail message.

IllegalMonitorStateExceptionback to summary
public IllegalMonitorStateException(String s)

Constructs an IllegalMonitorStateException with the specified detail message.

Parameters
s:String

the detail message.