KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > lang > IllegalMonitorStateException


1 /*
2  * @(#)IllegalMonitorStateException.java 1.12 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.lang;
9
10 /**
11  * Thrown to indicate that a thread has attempted to wait on an
12  * object's monitor or to notify other threads waiting on an object's
13  * monitor without owning the specified monitor.
14  *
15  * @author unascribed
16  * @version 1.12, 12/19/03
17  * @see java.lang.Object#notify()
18  * @see java.lang.Object#notifyAll()
19  * @see java.lang.Object#wait()
20  * @see java.lang.Object#wait(long)
21  * @see java.lang.Object#wait(long, int)
22  * @since JDK1.0
23  */

24 public
25 class IllegalMonitorStateException extends RuntimeException JavaDoc {
26     /**
27      * Constructs an <code>IllegalMonitorStateException</code> with no
28      * detail message.
29      */

30     public IllegalMonitorStateException() {
31     super();
32     }
33
34     /**
35      * Constructs an <code>IllegalMonitorStateException</code> with the
36      * specified detail message.
37      *
38      * @param s the detail message.
39      */

40     public IllegalMonitorStateException(String JavaDoc s) {
41     super(s);
42     }
43 }
44
Popular Tags