KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > lang > IllegalThreadStateException


1 /*
2  * @(#)IllegalThreadStateException.java 1.21 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 is not in an appropriate state
12  * for the requested operation. See, for example, the
13  * <code>suspend</code> and <code>resume</code> methods in class
14  * <code>Thread</code>.
15  *
16  * @author unascribed
17  * @version 1.21, 12/19/03
18  * @see java.lang.Thread#resume()
19  * @see java.lang.Thread#suspend()
20  * @since JDK1.0
21  */

22 public class IllegalThreadStateException extends IllegalArgumentException JavaDoc {
23     /**
24      * Constructs an <code>IllegalThreadStateException</code> with no
25      * detail message.
26      */

27     public IllegalThreadStateException() {
28     super();
29     }
30
31     /**
32      * Constructs an <code>IllegalThreadStateException</code> with the
33      * specified detail message.
34      *
35      * @param s the detail message.
36      */

37     public IllegalThreadStateException(String JavaDoc s) {
38     super(s);
39     }
40 }
41
Popular Tags