OSDN Git Service

* Makefile.in: Rebuilt.
[pf3gnuchains/gcc-fork.git] / libjava / java / lang / InstantiationException.java
1 /* InstantiationException.java -- exception thrown when trying to instantiate
2    interfaces and abstract classes using the newInstance method of class Class.
3    Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
4
5 This file is part of GNU Classpath.
6
7 GNU Classpath is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
11  
12 GNU Classpath is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GNU Classpath; see the file COPYING.  If not, write to the
19 Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
20 02111-1307 USA.
21
22 As a special exception, if you link this library with other files to
23 produce an executable, this library does not by itself cause the
24 resulting executable to be covered by the GNU General Public License.
25 This exception does not however invalidate any other reasons why the
26 executable file might be covered by the GNU General Public License. */
27
28
29 package java.lang;
30
31 /* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
32  * "The Java Language Specification", ISBN 0-201-63451-1
33  * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
34  * Status:  Believed complete and correct.
35  */
36
37 /**
38  * Exceptions may be thrown by one part of a Java program and caught
39  * by another in order to deal with exceptional conditions.
40  * Interfaces and abstract classes cannot be instantiated using the 
41  * <code>newInstance</code> method of class <code>Class</code>.  Trying
42  * to do so results in this exception being thrown.
43  *
44  * @since JDK 1.0
45  * 
46  * @author Brian Jones
47  * @author Warren Levy <warrenl@cygnus.com>
48  * @date September 18, 1998.
49  */
50 public class InstantiationException extends Exception
51 {
52   static final long serialVersionUID = -8441929162975509110L;
53
54   /**
55    * Create an exception without a message.
56    */
57   public InstantiationException()
58     {
59       super();
60     }
61
62   /**
63    * Create an exception with a message.
64    */
65   public InstantiationException(String s)
66     {
67       super(s);
68     }
69 }