1. /*
  2. * @(#)InstantiationError.java 1.9 00/02/02
  3. *
  4. * Copyright 1995-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.lang;
  11. /**
  12. * Thrown when an application tries to use the Java <code>new</code>
  13. * construct to instantiate an abstract class or an interface.
  14. * <p>
  15. * Normally, this error is caught by the compiler; this error can
  16. * only occur at run time if the definition of a class has
  17. * incompatibly changed.
  18. *
  19. * @author unascribed
  20. * @version 1.9, 02/02/00
  21. * @since JDK1.0
  22. */
  23. public
  24. class InstantiationError extends IncompatibleClassChangeError {
  25. /**
  26. * Constructs an <code>InstantiationError</code> with no detail message.
  27. */
  28. public InstantiationError() {
  29. super();
  30. }
  31. /**
  32. * Constructs an <code>InstantiationError</code> with the specified
  33. * detail message.
  34. *
  35. * @param s the detail message.
  36. */
  37. public InstantiationError(String s) {
  38. super(s);
  39. }
  40. }