jaroslav@1892
|
1 |
/*
|
jaroslav@1892
|
2 |
* Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
|
jaroslav@1892
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
jaroslav@1892
|
4 |
*
|
jaroslav@1892
|
5 |
* This code is free software; you can redistribute it and/or modify it
|
jaroslav@1892
|
6 |
* under the terms of the GNU General Public License version 2 only, as
|
jaroslav@1892
|
7 |
* published by the Free Software Foundation. Oracle designates this
|
jaroslav@1892
|
8 |
* particular file as subject to the "Classpath" exception as provided
|
jaroslav@1892
|
9 |
* by Oracle in the LICENSE file that accompanied this code.
|
jaroslav@1892
|
10 |
*
|
jaroslav@1892
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT
|
jaroslav@1892
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
jaroslav@1892
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
jaroslav@1892
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that
|
jaroslav@1892
|
15 |
* accompanied this code).
|
jaroslav@1892
|
16 |
*
|
jaroslav@1892
|
17 |
* You should have received a copy of the GNU General Public License version
|
jaroslav@1892
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation,
|
jaroslav@1892
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
jaroslav@1892
|
20 |
*
|
jaroslav@1892
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
jaroslav@1892
|
22 |
* or visit www.oracle.com if you need additional information or have any
|
jaroslav@1892
|
23 |
* questions.
|
jaroslav@1892
|
24 |
*/
|
jaroslav@1892
|
25 |
|
jaroslav@1892
|
26 |
package java.lang;
|
jaroslav@1892
|
27 |
|
jaroslav@1892
|
28 |
/**
|
jaroslav@1892
|
29 |
* Thrown to indicate that a thread has attempted to wait on an
|
jaroslav@1892
|
30 |
* object's monitor or to notify other threads waiting on an object's
|
jaroslav@1892
|
31 |
* monitor without owning the specified monitor.
|
jaroslav@1892
|
32 |
*
|
jaroslav@1892
|
33 |
* @author unascribed
|
jaroslav@1892
|
34 |
* @see java.lang.Object#notify()
|
jaroslav@1892
|
35 |
* @see java.lang.Object#notifyAll()
|
jaroslav@1892
|
36 |
* @see java.lang.Object#wait()
|
jaroslav@1892
|
37 |
* @see java.lang.Object#wait(long)
|
jaroslav@1892
|
38 |
* @see java.lang.Object#wait(long, int)
|
jaroslav@1892
|
39 |
* @since JDK1.0
|
jaroslav@1892
|
40 |
*/
|
jaroslav@1892
|
41 |
public
|
jaroslav@1892
|
42 |
class IllegalMonitorStateException extends RuntimeException {
|
jaroslav@1892
|
43 |
private static final long serialVersionUID = 3713306369498869069L;
|
jaroslav@1892
|
44 |
|
jaroslav@1892
|
45 |
/**
|
jaroslav@1892
|
46 |
* Constructs an <code>IllegalMonitorStateException</code> with no
|
jaroslav@1892
|
47 |
* detail message.
|
jaroslav@1892
|
48 |
*/
|
jaroslav@1892
|
49 |
public IllegalMonitorStateException() {
|
jaroslav@1892
|
50 |
super();
|
jaroslav@1892
|
51 |
}
|
jaroslav@1892
|
52 |
|
jaroslav@1892
|
53 |
/**
|
jaroslav@1892
|
54 |
* Constructs an <code>IllegalMonitorStateException</code> with the
|
jaroslav@1892
|
55 |
* specified detail message.
|
jaroslav@1892
|
56 |
*
|
jaroslav@1892
|
57 |
* @param s the detail message.
|
jaroslav@1892
|
58 |
*/
|
jaroslav@1892
|
59 |
public IllegalMonitorStateException(String s) {
|
jaroslav@1892
|
60 |
super(s);
|
jaroslav@1892
|
61 |
}
|
jaroslav@1892
|
62 |
}
|