1. /*
  2. * @(#)NoSuchMethodError.java 1.17 01/11/29
  3. *
  4. * Copyright 2002 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 call a specified method of a
  10. * class (either static or instance), and that class no longer has a
  11. * definition of that method.
  12. * <p>
  13. * Normally, this error is caught by the compiler; this error can
  14. * only occur at run time if the definition of a class has
  15. * incompatibly changed.
  16. *
  17. * @author unascribed
  18. * @version 1.17, 11/29/01
  19. * @since JDK1.0
  20. */
  21. public
  22. class NoSuchMethodError extends IncompatibleClassChangeError {
  23. /**
  24. * Constructs a <code>NoSuchMethodError</code> with no detail message.
  25. */
  26. public NoSuchMethodError() {
  27. super();
  28. }
  29. /**
  30. * Constructs a <code>NoSuchMethodError</code> with the
  31. * specified detail message.
  32. *
  33. * @param s the detail message.
  34. */
  35. public NoSuchMethodError(String s) {
  36. super(s);
  37. }
  38. }