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