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