source: trunk/src/gcc/libjava/java/lang/InterruptedException.java@ 1389

Last change on this file since 1389 was 2, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 2.9 KB
Line 
1/* InterruptedException.java -- exception thrown when a thread interrupts
2 another thread which was previously sleeping, waiting, or paused in some
3 other way.
4 Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
5
6This file is part of GNU Classpath.
7
8GNU Classpath is free software; you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
10the Free Software Foundation; either version 2, or (at your option)
11any later version.
12
13GNU Classpath is distributed in the hope that it will be useful, but
14WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16General Public License for more details.
17
18You should have received a copy of the GNU General Public License
19along with GNU Classpath; see the file COPYING. If not, write to the
20Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
2102111-1307 USA.
22
23Linking this library statically or dynamically with other modules is
24making a combined work based on this library. Thus, the terms and
25conditions of the GNU General Public License cover the whole
26combination.
27
28As a special exception, the copyright holders of this library give you
29permission to link this library with independent modules to produce an
30executable, regardless of the license terms of these independent
31modules, and to copy and distribute the resulting executable under
32terms of your choice, provided that you also meet, for each linked
33independent module, the terms and conditions of the license of that
34module. An independent module is a module which is not derived from
35or based on this library. If you modify this library, you may extend
36this exception to your version of the library, but you are not
37obligated to do so. If you do not wish to do so, delete this
38exception statement from your version. */
39
40
41package java.lang;
42
43/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
44 * "The Java Language Specification", ISBN 0-201-63451-1
45 * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
46 * Status: Believed complete and correct.
47 */
48
49/**
50 * Exceptions may be thrown by one part of a Java program and caught
51 * by another in order to deal with exceptional conditions.
52 * Thrown when a thread interrupts another thread which was previously
53 * sleeping, waiting, or paused in some other way. See the
54 * <code>interrupt</code> method of class <code>Thread</code>.
55 *
56 * @since JDK 1.0
57 *
58 * @author Brian Jones
59 * @author Warren Levy <[email protected]>
60 * @date September 18, 1998.
61 */
62public class InterruptedException extends Exception
63{
64 static final long serialVersionUID = 6700697376100628473L;
65
66 /**
67 * Create an exception without a message.
68 */
69 public InterruptedException()
70 {
71 super();
72 }
73
74 /**
75 * Create an exception with a message.
76 */
77 public InterruptedException(String s)
78 {
79 super(s);
80 }
81}
Note: See TracBrowser for help on using the repository browser.