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