public class AnnotationFormatError
extends Error
| java.lang.Object | |||
| java.lang.Throwable | |||
| java.lang.Error | |||
| java.lang.annotation.AnnotationFormatError | |||
当注解解析器尝试从类文件读取注释并确定注释格式错误时抛出。 这个错误可以由API used to read annotations reflectively抛出。
也可以看看:
Public constructors |
|
|---|---|
AnnotationFormatError(String message) 用指定的详细信息构造一个新的 AnnotationFormatError 。 |
|
AnnotationFormatError(String message, Throwable cause) 用指定的详细信息和原因构造一个新的 AnnotationFormatError 。 |
|
AnnotationFormatError(Throwable cause) 构造一个新的 AnnotationFormatError与指定的原因和 (cause == null ? null : cause.toString())详细消息(它通常包含的 cause类和详细消息)。 |
|
继承方法(Inherited methods) |
|
|---|---|
java.lang.Throwable
|
|
java.lang.Object
|
|
AnnotationFormatError (String message)
用指定的详细信息构造一个新的 AnnotationFormatError 。
| 参数(Parameters) | |
|---|---|
message |
String: the detail message. |
AnnotationFormatError (String message, Throwable cause)
用指定的详细信息和原因构造一个新的AnnotationFormatError 。 请注意与cause相关的详细消息不会自动包含在此错误的详细消息中。
| 参数(Parameters) | |
|---|---|
message |
String: the detail message |
cause |
Throwable: the cause (A null value is permitted, and indicates that the cause is nonexistent or unknown.) |
AnnotationFormatError (Throwable cause)
构造一个新的 AnnotationFormatError与指定的原因和 (cause == null ? null : cause.toString())详细消息(它通常包含的 cause类和详细消息)。
| 参数(Parameters) | |
|---|---|
cause |
Throwable: the cause (A null value is permitted, and indicates that the cause is nonexistent or unknown.) |