1. /*
  2. * @(#)IllegalAccessException.java 1.14 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. * An IllegalAccessException is thrown when an application tries
  10. * to reflectively create an instance (other than an array),
  11. * set or get a field, or invoke a method, but the currently
  12. * executing method does not have access to the definition of
  13. * the specified class, field, method or constructor.
  14. *
  15. * @author unascribed
  16. * @version 1.14, 12/19/03
  17. * @see Class#newInstance()
  18. * @see java.lang.reflect.Field#set(Object, Object)
  19. * @see java.lang.reflect.Field#setBoolean(Object, boolean)
  20. * @see java.lang.reflect.Field#setByte(Object, byte)
  21. * @see java.lang.reflect.Field#setShort(Object, short)
  22. * @see java.lang.reflect.Field#setChar(Object, char)
  23. * @see java.lang.reflect.Field#setInt(Object, int)
  24. * @see java.lang.reflect.Field#setLong(Object, long)
  25. * @see java.lang.reflect.Field#setFloat(Object, float)
  26. * @see java.lang.reflect.Field#setDouble(Object, double)
  27. * @see java.lang.reflect.Field#get(Object)
  28. * @see java.lang.reflect.Field#getBoolean(Object)
  29. * @see java.lang.reflect.Field#getByte(Object)
  30. * @see java.lang.reflect.Field#getShort(Object)
  31. * @see java.lang.reflect.Field#getChar(Object)
  32. * @see java.lang.reflect.Field#getInt(Object)
  33. * @see java.lang.reflect.Field#getLong(Object)
  34. * @see java.lang.reflect.Field#getFloat(Object)
  35. * @see java.lang.reflect.Field#getDouble(Object)
  36. * @see java.lang.reflect.Method#invoke(Object, Object[])
  37. * @see java.lang.reflect.Constructor#newInstance(Object[])
  38. * @since JDK1.0
  39. */
  40. public class IllegalAccessException extends Exception {
  41. /**
  42. * Constructs an <code>IllegalAccessException</code> without a
  43. * detail message.
  44. */
  45. public IllegalAccessException() {
  46. super();
  47. }
  48. /**
  49. * Constructs an <code>IllegalAccessException</code> with a detail message.
  50. *
  51. * @param s the detail message.
  52. */
  53. public IllegalAccessException(String s) {
  54. super(s);
  55. }
  56. }