Android Guides | Samples

Java.Lang.IllegalAccessError Class

Thrown when the runtime notices that a program tries to access a class or member which is not accessible from where it is referenced.

See Also: IllegalAccessError

Syntax

[Android.Runtime.Register("java/lang/IllegalAccessError", DoNotGenerateAcw=true)]
public class IllegalAccessError : IncompatibleClassChangeError

Remarks

Thrown when the runtime notices that a program tries to access a class or member which is not accessible from where it is referenced. Some examples are:

  • The superclass or an implemented interface is not accessible in the subclass.
  • Reading or writing an inaccessible field, e.g., a private field in another class.
  • Invoking an inaccessible method, e.g., the constructor of an inaccessible class, or a private method of another class.

Note that this can only occur when inconsistent class files have been loaded.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Java.Lang.IllegalAccessError are listed below.

See Also: IncompatibleClassChangeError

Public Constructors

Constructs a new IllegalAccessError that includes the current stack trace.
Constructs a new IllegalAccessError with the current stack trace and the specified detail message.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.