1. /*
  2. * @(#)EmptyStackException.java 1.20 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.util;
  8. /**
  9. * Thrown by methods in the <code>Stack</code> class to indicate
  10. * that the stack is empty.
  11. *
  12. * @author Jonathan Payne
  13. * @version 1.20, 12/19/03
  14. * @see java.util.Stack
  15. * @since JDK1.0
  16. */
  17. public
  18. class EmptyStackException extends RuntimeException {
  19. /**
  20. * Constructs a new <code>EmptyStackException</code> with <tt>null</tt>
  21. * as its error message string.
  22. */
  23. public EmptyStackException() {
  24. }
  25. }