1. /*
  2. * @(#)RuntimeException.java 1.9 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. * <code>RuntimeException</code> is the superclass of those
  13. * exceptions that can be thrown during the normal operation of the
  14. * Java Virtual Machine.
  15. * <p>
  16. * A method is not required to declare in its <code>throws</code>
  17. * clause any subclasses of <code>RuntimeException</code> that might
  18. * be thrown during the execution of the method but not caught.
  19. *
  20. *
  21. * @author Frank Yellin
  22. * @version 1.9, 02/02/00
  23. * @since JDK1.0
  24. */
  25. public
  26. class RuntimeException extends Exception {
  27. /**
  28. * Constructs a <code>RuntimeException</code> with no detail message.
  29. */
  30. public RuntimeException() {
  31. super();
  32. }
  33. /**
  34. * Constructs a <code>RuntimeException</code> with the specified
  35. * detail message.
  36. *
  37. * @param s the detail message.
  38. */
  39. public RuntimeException(String s) {
  40. super(s);
  41. }
  42. }