1. /*
  2. * @(#)IllegalAccessException.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 when an application tries to load in a class,
  13. * but the currently executing method does not have access to the
  14. * definition of the specified class, because the class is not public
  15. * and in another package.
  16. * <p>
  17. * An instance of this class can also be thrown when an application
  18. * tries to create an instance of a class using the
  19. * <code>newInstance</code> method in class <code>Class</code>, but
  20. * the current method does not have access to the appropriate
  21. * zero-argument constructor.
  22. *
  23. * @author unascribed
  24. * @version 1.9, 02/02/00
  25. * @see java.lang.Class#forName(java.lang.String)
  26. * @see java.lang.Class#newInstance()
  27. * @see java.lang.ClassLoader#findSystemClass(java.lang.String)
  28. * @see java.lang.ClassLoader#loadClass(java.lang.String, boolean)
  29. * @since JDK1.0
  30. */
  31. public class IllegalAccessException extends Exception {
  32. /**
  33. * Constructs an <code>IllegalAccessException</code> without a
  34. * detail message.
  35. */
  36. public IllegalAccessException() {
  37. super();
  38. }
  39. /**
  40. * Constructs an <code>IllegalAccessException</code> with a detail message.
  41. *
  42. * @param s the detail message.
  43. */
  44. public IllegalAccessException(String s) {
  45. super(s);
  46. }
  47. }