Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.lang

Class IllegalMonitorStateException

java.lang.Object
|
+--java.lang.Throwable
   |
   +--java.lang.Exception
      |
      +--java.lang.RuntimeException
         |
         +--java.lang.IllegalMonitorStateException


public class IllegalMonitorStateException

extends RuntimeException

Thrown when a thread attempts to wait or notify on a monitor that it does not own (ie. it has not synchronized on the object). For example:
 void m() {
   notify();
 }
 

Authors:

Constructor Summary

IllegalMonitorStateException()

Create an exception without a message.
IllegalMonitorStateException(java.lang.String s)

Create an exception with a message.

Constructor Details

IllegalMonitorStateException

public IllegalMonitorStateException()

Create an exception without a message.


IllegalMonitorStateException

public IllegalMonitorStateException(java.lang.String s)

Create an exception with a message.

Parameters: