- java.lang.Object
 -  
      
- java.lang.Throwable
 -  
        
- java.lang.Error
 -  
          
- java.lang.annotation.AnnotationFormatError
 
 
 
 
-  
       
- 实现的所有接口
 -  
         
Serializable 
public class AnnotationFormatError extends Error
当注释解析器尝试从类文件中读取注释并确定注释格式错误时抛出。 API used to read annotations reflectively可以抛出此错误。- 从以下版本开始:
 - 1.5
 - 另请参见:
 -  
         
AnnotatedElement, Serialized Form 
 
-  
        
       
-  
             
构造方法摘要
构造方法 构造器 描述 AnnotationFormatError(String message)使用指定的详细消息构造一个新的AnnotationFormatError。AnnotationFormatError(String message, Throwable cause)使用指定的详细消息和原因构造一个新的AnnotationFormatError。AnnotationFormatError(Throwable cause)构造一个新的AnnotationFormatError与指定的原因和详细消息(cause == null ? null : cause.toString())(它通常包含的类和详细消息cause)。 
-  
             
方法摘要
 
 -  
             
 
-  
        
       
-  
             
构造方法详细信息
-  
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,表示原因不存在或未知。) 
 
 -  
 
 -