java.lang
Class IllegalAccessError
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Error
|
+--java.lang.LinkageError
|
+--java.lang.IncompatibleClassChangeError
|
+--java.lang.IllegalAccessError
An IllegalAccessError
is thrown when an attempt is made to
call a method, or access or modify a field that the application does not
have access to. Because this error is usually caught by a compiler,
the error only occurs at runtime when the definition of a class has
changed in a way that is incompatible with the previously compiled
application.
Authors:- Brian Jones
- Tom Tromey <tromey@cygnus.com>
IllegalAccessError
public IllegalAccessError()
Create an error without a message.
IllegalAccessError
public IllegalAccessError(java.lang.String s)
Create an error with a message.
Parameters:
IllegalAccessError
is thrown when an attempt is made to call a method, or access or modify a field that the application does not have access to. Because this error is usually caught by a compiler, the error only occurs at runtime when the definition of a class has changed in a way that is incompatible with the previously compiled application.