public class AnnotationTypeMismatchException extends RuntimeException
| Constructor and Description |
|---|
AnnotationTypeMismatchException(Method element,
String foundType)
Constructs an instance for the given type element and the type found.
|
| Modifier and Type | Method and Description |
|---|---|
Method |
element()
Returns the method object for the invalid type.
|
String |
foundType()
Returns the invalid type.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic AnnotationTypeMismatchException(Method element, String foundType)
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.