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