[Chapter 12] NoSuchFieldException
Author: Mark Grand and Jonathan Knudsen
Date: Fri Aug 8 17:03:27 1997

#

| Chapter 12 The java.lang Package |

# NoSuchFieldException

## Name

NoSuchFieldException

## Synopsis

Class Name:

  `java.lang.NoSuchFieldException`

Superclass:

  `java.lang.Exception`

Immediate Subclasses:

  None

Interfaces Implemented:

  None

Availability:

  New as of JDK 1.1

## Description

A `NoSuchFieldException` is thrown when a specified variable cannot be found.

## Class Summary

    public class java.lang.NoSuchFieldException extends java.lang.Exception {
      // Constructors
      public NoSuchFieldException();
      public NoSuchFieldException(String s);
    }

## Constructors

### NoSuchFieldException

#### public NoSuchFieldException()

Description

  This constructor creates a `NoSuchFieldException` with no associated detail message.

#### public NoSuchFieldException(String s)

Parameters

  `s`

    The detail message.

Description

  This constructor creates a `NoSuchFieldException` with the specified 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()` | `Object`
`wait()` | `Object` | `wait(long)` | `Object`
`wait(long, int)` | `Object` |  |

## See Also

`Exception`, `Throwable`

NoSuchFieldError |  | NoSuchMethodError