AnnotationFormatError

王朝百科·作者佚名  2010-01-10  
宽屏版  字体: |||超大  

java.lang.annotation

类 AnnotationFormatError

java.lang.Object

java.lang.Throwable

java.lang.Error

java.lang.annotation.AnnotationFormatError

所有已实现的接口:

java.io.Serializable

--------------------------------------------------------------------------------

public class AnnotationFormatErrorextends Error当注释分析器试图从类文件读取注释并确定注释出现异常时,抛出该错误。

从以下版本开始:

1.5

另请参见:

序列化表格

--------------------------------------------------------------------------------

构造方法摘要

AnnotationFormatError(String message)

构造具有指定详细消息的新 AnnotationFormatError。

AnnotationFormatError(String message, Throwable cause)

构造带指定详细消息和原因的新 AnnotationFormatError。

AnnotationFormatError(Throwable cause)

构造带指定原因和详细消息的新 AnnotationFormatError,该消息为 (cause == null ? null :cause.toString())(它通常包含 cause 的类和详细消息)。

方法摘要

从类 java.lang.Throwable 继承的方法

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

从类 java.lang.Object 继承的方法

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

构造方法详细信息

AnnotationFormatError

public AnnotationFormatError(String message)构造具有指定详细消息的新 AnnotationFormatError。

参数:

message - 详细消息。

--------------------------------------------------------------------------------

AnnotationFormatError

public AnnotationFormatError(String message,

Throwable cause)构造带指定详细消息和原因的新 AnnotationFormatError。注意,与 cause 相关的详细消息不会 自动合并到此错误的详细消息中。

参数:

message - 详细消息

cause - 原因(允许 null 值,它表示原因是不存在的或是未知的。)

--------------------------------------------------------------------------------

AnnotationFormatError

public AnnotationFormatError(Throwable cause)构造带指定原因和详细消息的新 AnnotationFormatError,该消息为 (cause == null ? null :cause.toString())(它通常包含 cause 的类和详细消息)。

参数:

cause - 原因(允许 null 值,它表示原因是不存在的或是未知的。)

 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
© 2005- 王朝百科 版权所有