IllegalAccessExceptionNameIllegalAccessExceptionSynopsis
DescriptionAn IllegalAccessException is thrown when a program tries to dynamically load a class (i.e., uses the forName() method of the Class class, or the findSystemClass() or the loadClass() method of the ClassLoader class) and the currently executing method does not have access to the specified class because it is in another package and not public. This exception is also thrown when a program tries to create an instance of a class (i.e., uses the newInstance() method of the Class class) that does not have a zero-argument constructor accessible to the caller. Class Summary
public class java.lang.IllegalAccessException extends java.lang.Exception { // Constructors public IllegalAccessException(); public IllegalAccessException(String s); } ConstructorsIllegalAccessExceptionpublic IllegalAccessException()
public IllegalAccessException(String s)
Inherited Methods
See AlsoClass, ClassLoader, Exception, Throwable |
|