1. /*
  2. * @(#)StackOverflowError.java 1.21 03/12/19
  3. *
  4. * Copyright 2004 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 a stack overflow occurs because an application
  10. * recurses too deeply.
  11. *
  12. * @author unascribed
  13. * @version 1.21, 12/19/03
  14. * @since JDK1.0
  15. */
  16. public
  17. class StackOverflowError extends VirtualMachineError {
  18. /**
  19. * Constructs a <code>StackOverflowError</code> with no detail message.
  20. */
  21. public StackOverflowError() {
  22. super();
  23. }
  24. /**
  25. * Constructs a <code>StackOverflowError</code> with the specified
  26. * detail message.
  27. *
  28. * @param s the detail message.
  29. */
  30. public StackOverflowError(String s) {
  31. super(s);
  32. }
  33. }