1. /*
  2. * @(#)InstantiationException.java 1.14 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 create an instance of a class
  13. * using the <code>newInstance</code> method in class
  14. * <code>Class</code>, but the specified class object cannot be
  15. * instantiated because it is an interface or is an abstract class.
  16. *
  17. * @author unascribed
  18. * @version 1.14, 02/02/00
  19. * @see java.lang.Class#newInstance()
  20. * @since JDK1.0
  21. */
  22. public
  23. class InstantiationException extends Exception {
  24. /**
  25. * Constructs an <code>InstantiationException</code> with no detail message.
  26. */
  27. public InstantiationException() {
  28. super();
  29. }
  30. /**
  31. * Constructs an <code>InstantiationException</code> with the
  32. * specified detail message.
  33. *
  34. * @param s the detail message.
  35. */
  36. public InstantiationException(String s) {
  37. super(s);
  38. }
  39. }