1. /*
  2. * @(#)IllegalAccessError.java 1.15 03/01/23
  3. *
  4. * Copyright 2003 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 attempts to access or modify a field, or
  10. * to call a method that it does not have access to.
  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.15, 01/23/03
  18. * @since JDK1.0
  19. */
  20. public class IllegalAccessError extends IncompatibleClassChangeError {
  21. /**
  22. * Constructs an <code>IllegalAccessError</code> with no detail message.
  23. */
  24. public IllegalAccessError() {
  25. super();
  26. }
  27. /**
  28. * Constructs an <code>IllegalAccessError</code> with the specified
  29. * detail message.
  30. *
  31. * @param s the detail message.
  32. */
  33. public IllegalAccessError(String s) {
  34. super(s);
  35. }
  36. }