Package java.lang.annotation
Class AnnotationTypeMismatchException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.annotation.AnnotationTypeMismatchException
-
- All Implemented Interfaces:
Serializable
public class AnnotationTypeMismatchException extends RuntimeException
Indicates that an annotation type has changed since it was compiled or serialized.- Since:
- 1.5
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AnnotationTypeMismatchException(Method element, String foundType)Constructs an instance for the given type element and the type found.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Methodelement()Returns the method object for the invalid type.StringfoundType()Returns the invalid type.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AnnotationTypeMismatchException
public AnnotationTypeMismatchException(Method element, String foundType)
Constructs an instance for the given type element and the type found.- Parameters:
element- the annotation type element.foundType- the invalid type that was found. This is actually the textual type description found in the binary class representation, so it may not be human-readable.
-
-