public class java.lang
IllegalAccessException


Hide details Login
Java SE 6
  
Extends: Throwable > Exception

An IllegalAccessException is thrown when an application tries to reflectively create an instance (other than an array), set or get a field, or invoke a method, but the currently executing method does not have access to the definition of the specified class, field, method or constructor.
version1.15, 11/17/05
sinceJDK1.0
See also newInstance(), set(Object, Object), setBoolean(Object, boolean), setByte(Object, byte), setShort(Object, short), setChar(Object, char), setInt(Object, int), setLong(Object, long), setFloat(Object, float), setDouble(Object, double), get(Object), getBoolean(Object), getByte(Object), getShort(Object), getChar(Object), getInt(Object), getLong(Object), getFloat(Object), getDouble(Object), invoke(Object, Object[]), newInstance(Object[])

Constructors
public IllegalAccessException()
Constructs an IllegalAccessException without a detail message.
public IllegalAccessException(String s)
Constructs an IllegalAccessException with a detail message.
sthe detail message.