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 specifiedfield of an object, and that object no longer has that field.

Normally, this error is caught by the compiler; this error canonly occur at run time if the definition of a class hasincompatibly 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 specifieddetail message.
      Parameters:
      s - the detail message.