AnnotationTypeMismatchException

public class AnnotationTypeMismatchException extends RuntimeException

Thrown to indicate that a program has attempted to access an element of an annotation whose type has changed after the annotation was compiled (or serialized). This exception can be thrown by the {@linkplain java.lang.reflect.AnnotatedElement API used to read annotations reflectively}.

See Also

Public Constructor Summary

AnnotationTypeMismatchException(Method element, String foundType)
Constructs an AnnotationTypeMismatchException for the specified annotation type element and found data type.

Public Method Summary

Method
element()
Returns the Method object for the incorrectly typed element.
String
foundType()
Returns the type of data found in the incorrectly typed element.

Inherited Method Summary