/[classpath]/classpath/java/lang/annotation/AnnotationFormatError.java
ViewVC logotype

Diff of /classpath/java/lang/annotation/AnnotationFormatError.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.2.1 by tromey, Sat Aug 7 19:01:27 2004 UTC revision 1.1.2.2 by gnu_andrew, Sun Feb 20 21:10:35 2005 UTC
# Line 1  Line 1 
1  /* AnnotationFormatError.java - Thrown when annotation is malformed in class  /* AnnotationFormatError.java - Thrown when an binary annotation is malformed
2     Copyright (C) 2004 Free Software Foundation     Copyright (C) 2004, 2005 Free Software Foundation
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 38  exception statement from your version. * Line 38  exception statement from your version. *
38  package java.lang.annotation;  package java.lang.annotation;
39    
40  /**  /**
41     * Thrown when an annotation found in a class file is
42     * malformed.  When the virtual machine finds a class file
43     * containing annotations, it attempts to parse them.
44     * This error is thrown if this operation fails.
45     *
46     * @author Tom Tromey (tromey@redhat.com)
47     * @author Andrew John Hughes (gnu_andrew@member.fsf.org)
48   * @since 1.5   * @since 1.5
49   */   */
50  public class AnnotationFormatError extends Error  public class AnnotationFormatError extends Error
51  {  {
52    
53      /**
54       * Constructs a new <code>AnnotationFormatError</code>
55       * using the specified message to give details of the error.
56       *
57       * @param message the message to use in the error output.
58       */
59    public AnnotationFormatError(String message)    public AnnotationFormatError(String message)
60    {    {
61      super(message);      super(message);
62    }    }
63    
64      /**
65       * <p>
66       * Constructs a new <code>AnnotationFormatError</code>
67       * using the specified message to give details of the error.
68       * The supplied cause <code>Throwable</code> is used to
69       * provide additional history, with regards to the root
70       * of the problem.  It is perfectly valid for this to be null, if
71       * the cause is unknown.
72       * </p>
73       * <p>
74       * <strong>Note</strong>: if a cause is supplied, the error
75       * message from this cause is not automatically included in the
76       * error message given by this error.
77       * </p>
78       *
79       * @param message the message to use in the error output
80       * @param cause the cause of this error, or null if the cause
81       *              is unknown.
82       */
83    public AnnotationFormatError(String message, Throwable cause)    public AnnotationFormatError(String message, Throwable cause)
84    {    {
85      super(message, cause);      super(message, cause);
86    }    }
87    
88      /**
89       * Constructs a new <code>AnnotationFormatError</code> using
90       * the supplied cause <code>Throwable</code> to
91       * provide additional history, with regards to the root
92       * of the problem.  It is perfectly valid for this to be null, if
93       * the cause is unknown.  If the cause is not null, the error
94       * message from this cause will also be used as the message
95       * for this error.
96       *
97       * @param cause the cause of the error.
98       */
99    public AnnotationFormatError(Throwable cause)    public AnnotationFormatError(Throwable cause)
100    {    {
101      super(cause);      super(cause);
102    }    }
103    
104  }  }

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26