Package java.lang.annotation
Class AnnotationFormatError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Error
-
- java.lang.annotation.AnnotationFormatError
-
- All Implemented Interfaces:
Serializable
public class AnnotationFormatError extends Error
Indicates that an annotation in the binary representation of a class is syntactically incorrect and the annotation parser is unable to process it. This exception is unlikely to ever occur, given that the code has been compiled by an ordinary Java compiler.- Since:
- 1.5
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AnnotationFormatError(String message)Constructs an instance with the message provided.AnnotationFormatError(String message, Throwable cause)Constructs an instance with a message and a cause.AnnotationFormatError(Throwable cause)Constructs an instance with a cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AnnotationFormatError
public AnnotationFormatError(String message)
Constructs an instance with the message provided.- Parameters:
message- the details of the error.
-
AnnotationFormatError
public AnnotationFormatError(String message, Throwable cause)
Constructs an instance with a message and a cause.- Parameters:
message- the details of the error.cause- the cause of the error ornullif none.
-
AnnotationFormatError
public AnnotationFormatError(Throwable cause)
Constructs an instance with a cause. If the cause is notnull, thencause.toString()is used as the error's message.- Parameters:
cause- the cause of the error ornullif none.
-
-