1. /*
  2. * @(#)Error.java 1.12 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. * An <code>Error</code> is a subclass of <code>Throwable</code>
  13. * that indicates serious problems that a reasonable application
  14. * should not try to catch. Most such errors are abnormal conditions.
  15. * The <code>ThreadDeath</code> error, though a "normal" condition,
  16. * is also a subclass of <code>Error</code> because most applications
  17. * should not try to catch it.
  18. * <p>
  19. * A method is not required to declare in its <code>throws</code>
  20. * clause any subclasses of <code>Error</code> that might be thrown
  21. * during the execution of the method but not caught, since these
  22. * errors are abnormal conditions that should never occur.
  23. *
  24. * @author Frank Yellin
  25. * @version 1.12, 02/02/00
  26. * @see java.lang.ThreadDeath
  27. * @since JDK1.0
  28. */
  29. public
  30. class Error extends Throwable {
  31. /**
  32. * Constructs an <code>Error</code> with no specified detail message.
  33. */
  34. public Error() {
  35. super();
  36. }
  37. /**
  38. * Constructs an Error with the specified detail message.
  39. *
  40. * @param s the detail message.
  41. */
  42. public Error(String s) {
  43. super(s);
  44. }
  45. }