1. /*
  2. * @(#)NoSuchFieldError.java 1.9 00/02/02
  3. *
  4. * Copyright 1995-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.lang;
  11. /**
  12. * Thrown if an application tries to access or modify a specified
  13. * field of an object, and that object no longer has that field.
  14. * <p>
  15. * Normally, this error is caught by the compiler; this error can
  16. * only occur at run time if the definition of a class has
  17. * incompatibly changed.
  18. *
  19. * @author unascribed
  20. * @version 1.9, 02/02/00
  21. * @since JDK1.0
  22. */
  23. public
  24. class NoSuchFieldError extends IncompatibleClassChangeError {
  25. /**
  26. * Constructs a <code>NoSuchFieldException</code> with no detail message.
  27. */
  28. public NoSuchFieldError() {
  29. super();
  30. }
  31. /**
  32. * Constructs a <code>NoSuchFieldException</code> with the specified
  33. * detail message.
  34. *
  35. * @param s the detail message.
  36. */
  37. public NoSuchFieldError(String s) {
  38. super(s);
  39. }
  40. }