java.util
Class EmptyStackException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
EmptyStackException
public EmptyStackException()
- Constructs an EmptyStackException with no detail message.