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