Package 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
An
EmptyStackException is thrown if the pop/peek method of a stack is
executed on an empty stack.- See Also:
RuntimeException, Serialized Form
-
Constructor Summary
Constructors Constructor Description EmptyStackException()Constructs a newEmptyStackExceptionwith the stack trace filled in. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EmptyStackException
public EmptyStackException()Constructs a newEmptyStackExceptionwith the stack trace filled in.
-