KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > lang > IllegalAccessException


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
8 package java.lang;
9
10 /**
11  * An IllegalAccessException is thrown when an application tries
12  * to reflectively create an instance (other than an array),
13  * set or get a field, or invoke a method, but the currently
14  * executing method does not have access to the definition of
15  * the specified class, field, method or constructor.
16  *
17  * @author unascribed
18  * @version 1.14, 12/19/03
19  * @see Class#newInstance()
20  * @see java.lang.reflect.Field#set(Object, Object)
21  * @see java.lang.reflect.Field#setBoolean(Object, boolean)
22  * @see java.lang.reflect.Field#setByte(Object, byte)
23  * @see java.lang.reflect.Field#setShort(Object, short)
24  * @see java.lang.reflect.Field#setChar(Object, char)
25  * @see java.lang.reflect.Field#setInt(Object, int)
26  * @see java.lang.reflect.Field#setLong(Object, long)
27  * @see java.lang.reflect.Field#setFloat(Object, float)
28  * @see java.lang.reflect.Field#setDouble(Object, double)
29  * @see java.lang.reflect.Field#get(Object)
30  * @see java.lang.reflect.Field#getBoolean(Object)
31  * @see java.lang.reflect.Field#getByte(Object)
32  * @see java.lang.reflect.Field#getShort(Object)
33  * @see java.lang.reflect.Field#getChar(Object)
34  * @see java.lang.reflect.Field#getInt(Object)
35  * @see java.lang.reflect.Field#getLong(Object)
36  * @see java.lang.reflect.Field#getFloat(Object)
37  * @see java.lang.reflect.Field#getDouble(Object)
38  * @see java.lang.reflect.Method#invoke(Object, Object[])
39  * @see java.lang.reflect.Constructor#newInstance(Object[])
40  * @since JDK1.0
41  */

42 public class IllegalAccessException extends Exception JavaDoc {
43     /**
44      * Constructs an <code>IllegalAccessException</code> without a
45      * detail message.
46      */

47     public IllegalAccessException() {
48     super();
49     }
50
51     /**
52      * Constructs an <code>IllegalAccessException</code> with a detail message.
53      *
54      * @param s the detail message.
55      */

56     public IllegalAccessException(String JavaDoc s) {
57     super(s);
58     }
59 }
60
Popular Tags