KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > lang > InterruptedException


1 /*
2  * @(#)InterruptedException.java 1.15 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 when a thread is waiting, sleeping, or otherwise paused for
12  * a long time and another thread interrupts it using the
13  * <code>interrupt</code> method in class <code>Thread</code>.
14  *
15  * @author Frank Yellin
16  * @version 1.15, 12/19/03
17  * @see java.lang.Object#wait()
18  * @see java.lang.Object#wait(long)
19  * @see java.lang.Object#wait(long, int)
20  * @see java.lang.Thread#sleep(long)
21  * @see java.lang.Thread#interrupt()
22  * @see java.lang.Thread#interrupted()
23  * @since JDK1.0
24  */

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

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

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