[Chapter 17] EmptyStackException
Author: Mark Grand and Jonathan Knudsen
Date: Fri Aug 8 17:42:11 1997

#

| Chapter 17 The java.util Package |

# EmptyStackException

## Name

EmptyStackException

## Synopsis

Class Name:

  `java.util.EmptyStackException`

Superclass:

  `java.lang.RuntimeException`

Immediate Subclasses:

  None

Interfaces Implemented:

  None

Availability:

  JDK 1.0 or later

## Description

An `EmptyStackException` is thrown by methods of the `Stack` class when an operation cannot be completed because the stack is empty.

## Class Summary

    public class java.util.EmptyStackException
                 extends java.lang.RuntimeException {
      // Constructors
      public EmptyStackException();
    }

## Constructors

### EmptyStackException

#### public EmptyStackException()

Description

  This constructor creates a`n EmptyStackException` with no associated detail message.

## Inherited Methods

Method | Inherited From | Method | Inherited From
--- | --- | --- | ---
`clone()` | `Object` | `equals(Object)` | `Object`
`fillInStackTrace()` | `Throwable` | `finalize()` | `Object`
`getClass()` | `Object` | `getLocalizedMessage()` | `Throwable`
`getMessage()` | `Throwable` | `hashCode()` | `Object`
`notify()` | `Object` | `notifyAll()` | `Object`
`printStackTrace()` | `Throwable` | `printStackTrace(PrintStream)` | `Throwable`
`printStackTrace(PrintWriter)` | `Throwable` | `toString()` | `Throwable`
`wait()` | `Object` | `wait(long)` | `Object`
`wait(long, int)` | `Object` |  |

## See Also

`Exception`, `RuntimeException`, `Stack`

Dictionary |  | Enumeration