Class NoSuchFieldError

java.lang.Object
java.lang.Throwable
java.lang.Error
All Implemented Interfaces:
Serializable

public classNoSuchFieldErrorextendsIncompatibleClassChangeError
Thrown if an application tries to access or modify a specified field of an object, and that object no longer has that field.

Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed.

Since:
1.0
See Also:
  • Constructor Details

    • NoSuchFieldError

      public NoSuchFieldError()
      Constructs aNoSuchFieldError with no detail message.
    • NoSuchFieldError

      public NoSuchFieldError(String s)
      Constructs aNoSuchFieldError with the specified detail message.
      Parameters:
      s - the detail message.