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