Tuesday 12 March 2013

java.lang IllegalAccessException



java.lang
IllegalAccessException

Declaration
public class IllegalAccessException extends Exception
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.IllegalAccessException
Description
Thrown when an application tries to load in a class, but the currently executing method does not have access to
the definition of the specified class, because the class is not public and in another package.
An instance of this class can also be thrown when an application tries to create an instance of a class using the
newInstance method in class Class, but the current method does not have access to the appropriate zeroargument
constructor.


Constructors
IllegalAccessException()
IllegalAccessException(String s)

Methods inherited from class Object
equals(Object), getClass(), hashCode(), notify(), notifyAll(), wait(), wait(), wait()
Methods inherited from class Throwable
getMessage(), printStackTrace(), toString()


Constructors
IllegalAccessException()
Declaration:
public IllegalAccessException()
Description:
Constructs an IllegalAccessException without a detail message.
IllegalAccessException(String)
Declaration:
public IllegalAccessException(java.lang.String s)
Description:
Constructs an IllegalAccessException with a detail message.
Parameters:
s - the detail message.



No comments:

Post a Comment