#

| Chapter 30 The java.util Package |

## 30.14 java.util.NoSuchElementException (JDK 1.0)

###

Signals that there are no elements in an object (such as a `Vector`) or that there are no more elements in an object (such as an `Enumeration`).

    public class NoSuchElementException extends RuntimeException {
        // Public Constructors
                public NoSuchElementException();
                public NoSuchElementException(String s);
    }

### Hierarchy:

Object->Throwable(Serializable)->Exception->RuntimeException->NoSuchElementException

java.util.MissingResourceException (JDK 1.1) |  | java.util.Observable (JDK 1.0)