1 /* 2 * @(#)InstantiationError.java 1.12 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 an application tries to use the Java <code>new</code> 12 * construct to instantiate an abstract class or an interface. 13 * <p> 14 * Normally, this error is caught by the compiler; this error can 15 * only occur at run time if the definition of a class has 16 * incompatibly changed. 17 * 18 * @author unascribed 19 * @version 1.12, 12/19/03 20 * @since JDK1.0 21 */ 22 23 24 public 25 class InstantiationError extends IncompatibleClassChangeError { 26 /** 27 * Constructs an <code>InstantiationError</code> with no detail message. 28 */ 29 public InstantiationError() { 30 super(); 31 } 32 33 /** 34 * Constructs an <code>InstantiationError</code> with the specified 35 * detail message. 36 * 37 * @param s the detail message. 38 */ 39 public InstantiationError(String s) { 40 super(s); 41 } 42 } 43