KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > lang > annotation > AnnotationFormatError


1 /*
2  * @(#)AnnotationFormatError.java 1.1 04/02/03
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.lang.annotation;
9
10 /**
11  * Thrown when the annotation parser attempts to read an annotation
12  * from a class file and determines that the annotation is malformed.
13  *
14  * @author Josh Bloch
15  * @since 1.5
16  */

17 public class AnnotationFormatError extends Error JavaDoc {
18     /**
19      * Constructs a new <tt>AnnotationFormatError</tt> with the specified
20      * detail message.
21      *
22      * @param message the detail message.
23      */

24     public AnnotationFormatError(String JavaDoc message) {
25     super(message);
26     }
27
28     /**
29      * Constructs a new <tt>AnnotationFormatError</tt> with the specified
30      * detail message and cause. Note that the detail message associated
31      * with <code>cause</code> is <i>not</i> automatically incorporated in
32      * this error's detail message.
33      *
34      * @param message the detail message
35      * @param cause the cause (A <tt>null</tt> value is permitted, and
36      * indicates that the cause is nonexistent or unknown.)
37      */

38     public AnnotationFormatError(String JavaDoc message, Throwable JavaDoc cause) {
39         super(message, cause);
40     }
41
42
43     /**
44      * Constructs a new <tt>AnnotationFormatError</tt> with the specified
45      * cause and a detail message of
46      * <tt>(cause == null ? null : cause.toString())</tt> (which
47      * typically contains the class and detail message of <tt>cause</tt>).
48      *
49      * @param cause the cause (A <tt>null</tt> value is permitted, and
50      * indicates that the cause is nonexistent or unknown.)
51      */

52     public AnnotationFormatError(Throwable JavaDoc cause) {
53         super(cause);
54     }
55 }
56
Popular Tags