java.util
Class EmptyStackException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.util.EmptyStackException
All Implemented Interfaces:
Serializable

public class EmptyStackException
extends RuntimeException

This exception is thrown by the Stack class when an attempt is made to pop or otherwise access elements from an empty stack.

Since:
1.0
See Also:
Stack, Serialized Form

Constructor Summary
EmptyStackException()
          Constructs an EmptyStackException with no detail message.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EmptyStackException

public EmptyStackException()
Constructs an EmptyStackException with no detail message.