Most visited

Recently visited

Added in API level 19

ReflectiveOperationException

public class ReflectiveOperationException
extends 异常

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.ReflectiveOperationException
Known Direct Subclasses


反射操作在核心反射中抛出的常见超类异常。

也可以看看:

Summary

Public constructors

ReflectiveOperationException()

null作为详细消息构造一个新的例外。

ReflectiveOperationException(String message)

用指定的详细信息构造一个新的异常。

ReflectiveOperationException(String message, Throwable cause)

用指定的详细信息和原因构造一个新的异常。

ReflectiveOperationException(Throwable cause)

构造具有指定的原因和详细消息的新异常 (cause==null ? null : cause.toString()) (它通常包含的类和详细消息 cause )。

Inherited methods

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

Public constructors

ReflectiveOperationException

Added in API level 19
ReflectiveOperationException ()

null作为详细消息构造一个新的异常。 原因未初始化,并可能随后通过致电initCause(Throwable)进行初始化。

ReflectiveOperationException

Added in API level 19
ReflectiveOperationException (String message)

用指定的详细信息构造一个新的异常。 原因未初始化,并可能随后通过致电initCause(Throwable)进行初始化。

Parameters
message String: the detail message. The detail message is saved for later retrieval by the getMessage() method.

ReflectiveOperationException

Added in API level 19
ReflectiveOperationException (String message, 
                Throwable cause)

用指定的详细信息和原因构造一个新的异常。

请注意,与 cause相关的详细消息 不会自动包含在此例外的详细消息中。

Parameters
message String: the detail message (which is saved for later retrieval by the getMessage() method).
cause Throwable: the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

ReflectiveOperationException

Added in API level 19
ReflectiveOperationException (Throwable cause)

构造具有指定的原因和详细消息的新异常 (cause==null ? null : cause.toString()) (它通常包含的类和详细消息 cause )。

Parameters
cause Throwable: the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

Hooray!