20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package java.lang;
27
28 /**
29 * Thrown to indicate that a thread is not in an appropriate state
30 * for the requested operation. See, for example, the
31 * <code>suspend</code> and <code>resume</code> methods in class
32 * <code>Thread</code>.
33 *
34 * @author unascribed
35 * @see java.lang.Thread#resume()
36 * @see java.lang.Thread#suspend()
37 * @since 1.0
38 */
39 public class IllegalThreadStateException extends IllegalArgumentException {
40 private static final long serialVersionUID = -7626246362397460174L;
41
42 /**
43 * Constructs an <code>IllegalThreadStateException</code> with no
44 * detail message.
45 */
46 public IllegalThreadStateException() {
47 super();
48 }
49
50 /**
51 * Constructs an <code>IllegalThreadStateException</code> with the
52 * specified detail message.
53 *
54 * @param s the detail message.
55 */
56 public IllegalThreadStateException(String s) {
57 super(s);
58 }
59 }
|
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package java.lang;
27
28 /**
29 * Thrown to indicate that a thread is not in an appropriate state
30 * for the requested operation. See, for example, the
31 * <code>suspend</code> and <code>resume</code> methods in class
32 * <code>Thread</code>.
33 *
34 * @author unascribed
35 * @see java.lang.Thread#resume()
36 * @see java.lang.Thread#suspend()
37 * @since 1.0
38 */
39 public class IllegalThreadStateException extends IllegalArgumentException {
40 @java.io.Serial
41 private static final long serialVersionUID = -7626246362397460174L;
42
43 /**
44 * Constructs an <code>IllegalThreadStateException</code> with no
45 * detail message.
46 */
47 public IllegalThreadStateException() {
48 super();
49 }
50
51 /**
52 * Constructs an <code>IllegalThreadStateException</code> with the
53 * specified detail message.
54 *
55 * @param s the detail message.
56 */
57 public IllegalThreadStateException(String s) {
58 super(s);
59 }
60 }
|