Share via


AnnotationFormatError 类

定义

当批注分析程序尝试从类文件读取批注并确定批注格式不正确时引发。

[Android.Runtime.Register("java/lang/annotation/AnnotationFormatError", DoNotGenerateAcw=true)]
public class AnnotationFormatError : Java.Lang.Error
[<Android.Runtime.Register("java/lang/annotation/AnnotationFormatError", DoNotGenerateAcw=true)>]
type AnnotationFormatError = class
    inherit Error
继承
AnnotationFormatError
属性

注解

当批注分析程序尝试从类文件读取批注并确定批注格式不正确时引发。 此错误可由用于反光读取批注的 java.lang.reflect.AnnotatedElement API 引发。

在 1.5 中添加。

java.lang.annotation.AnnotationFormatErrorJava 文档。

此页面的部分内容是基于 创建和共享的工作进行的修改,并根据 署名许可中所述的术语使用。

构造函数

AnnotationFormatError(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

AnnotationFormatError(String)

使用指定的详细信息消息构造一个新的 AnnotationFormatError

AnnotationFormatError(String, Throwable)

使用指定的详细信息消息和原因构造新的 AnnotationFormatError

AnnotationFormatError(Throwable)

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

字段

is_generated

当批注分析程序尝试从类文件读取批注并确定批注格式不正确时引发。

(继承自 Throwable)

属性

Cause

如果原因不存在或 null 未知,则返回此可引发的原因。

(继承自 Throwable)
Class

当批注分析程序尝试从类文件读取批注并确定批注格式不正确时引发。

(继承自 Throwable)
Handle

基础 Android 实例的句柄。

(继承自 Throwable)
JniIdentityHashCode

当批注分析程序尝试从类文件读取批注并确定批注格式不正确时引发。

(继承自 Throwable)
JniPeerMembers

当批注分析程序尝试从类文件读取批注并确定批注格式不正确时引发。

LocalizedMessage

创建此可引发内容的本地化说明。

(继承自 Throwable)
Message

返回此可引发的详细信息消息字符串。

(继承自 Throwable)
PeerReference

当批注分析程序尝试从类文件读取批注并确定批注格式不正确时引发。

(继承自 Throwable)
StackTrace

当批注分析程序尝试从类文件读取批注并确定批注格式不正确时引发。

(继承自 Throwable)
ThresholdClass

此 API 支持 Mono for Android 基础结构,不应直接从代码使用。

ThresholdType

此 API 支持 Mono for Android 基础结构,不应直接从代码使用。

方法

AddSuppressed(Throwable)

将指定的异常追加到为了提供此异常而取消的异常。

(继承自 Throwable)
Dispose()

当批注分析程序尝试从类文件读取批注并确定批注格式不正确时引发。

(继承自 Throwable)
Dispose(Boolean)

当批注分析程序尝试从类文件读取批注并确定批注格式不正确时引发。

(继承自 Throwable)
FillInStackTrace()

填充执行堆栈跟踪。

(继承自 Throwable)
GetStackTrace()

提供对打印 #printStackTrace()的堆栈跟踪信息的编程访问。

(继承自 Throwable)
GetSuppressed()

返回一个数组,其中包含为了传递此异常而抑制的所有异常(通常由 try-with-resources 语句)。

(继承自 Throwable)
InitCause(Throwable)

将此可 引发的原因初始化 为指定值。

(继承自 Throwable)
PrintStackTrace()

打印此可引发结果及其回溯到标准错误流。

(继承自 Throwable)
PrintStackTrace(PrintStream)

打印此可抛出结果及其回溯到指定的打印流。

(继承自 Throwable)
PrintStackTrace(PrintWriter)

打印此可引发内容及其回溯到指定的打印编写器。

(继承自 Throwable)
SetHandle(IntPtr, JniHandleOwnership)

设置 Handle 属性。

(继承自 Throwable)
SetStackTrace(StackTraceElement[])

设置将返回并由 #getStackTrace() 相关方法打印 #printStackTrace() 的堆栈跟踪元素。

(继承自 Throwable)
ToString()

当批注分析程序尝试从类文件读取批注并确定批注格式不正确时引发。

(继承自 Throwable)
UnregisterFromRuntime()

当批注分析程序尝试从类文件读取批注并确定批注格式不正确时引发。

(继承自 Throwable)

显式接口实现

IJavaPeerable.Disposed()

当批注分析程序尝试从类文件读取批注并确定批注格式不正确时引发。

(继承自 Throwable)
IJavaPeerable.DisposeUnlessReferenced()

当批注分析程序尝试从类文件读取批注并确定批注格式不正确时引发。

(继承自 Throwable)
IJavaPeerable.Finalized()

当批注分析程序尝试从类文件读取批注并确定批注格式不正确时引发。

(继承自 Throwable)
IJavaPeerable.JniManagedPeerState

当批注分析程序尝试从类文件读取批注并确定批注格式不正确时引发。

(继承自 Throwable)
IJavaPeerable.SetJniIdentityHashCode(Int32)

当批注分析程序尝试从类文件读取批注并确定批注格式不正确时引发。

(继承自 Throwable)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

当批注分析程序尝试从类文件读取批注并确定批注格式不正确时引发。

(继承自 Throwable)
IJavaPeerable.SetPeerReference(JniObjectReference)

当批注分析程序尝试从类文件读取批注并确定批注格式不正确时引发。

(继承自 Throwable)

扩展方法

JavaCast<TResult>(IJavaObject)

执行 Android 运行时检查的类型转换。

JavaCast<TResult>(IJavaObject)

当批注分析程序尝试从类文件读取批注并确定批注格式不正确时引发。

GetJniTypeName(IJavaPeerable)

当批注分析程序尝试从类文件读取批注并确定批注格式不正确时引发。

适用于