Most visited

Recently visited

Added in API level 1

IllegalAccessException

public class IllegalAccessException
extends ReflectiveOperationException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.ReflectiveOperationException
         ↳ java.lang.IllegalAccessException


当应用程序尝试反射创建实例(除数组外),设置或获取字段或调用方法时,会引发IllegalAccessException,但当前正在执行的方法无法访问指定的类,字段的定义,方法或构造函数。

也可以看看:

Summary

Public constructors

IllegalAccessException()

构造一个没有详细信息的 IllegalAccessException

IllegalAccessException(String s)

用详细消息构造一个 IllegalAccessException

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

IllegalAccessException

Added in API level 1
IllegalAccessException ()

构造一个没有详细信息的 IllegalAccessException

IllegalAccessException

Added in API level 1
IllegalAccessException (String s)

用详细消息构造一个 IllegalAccessException

Parameters
s String: the detail message.

Hooray!