public class AnnotationTypeMismatchException extends RuntimeException
AnnotatedElement,
Serialized Form
| Constructor and Description |
|---|
AnnotationTypeMismatchException(Method
Constructs an AnnotationTypeMismatchException for the specified annotation type element and found data type.
|
| Modifier and Type | Method and Description |
|---|---|
Method |
element()
Returns the
Method object for the incorrectly typed element.
|
String |
foundType()
Returns the type of data found in the incorrectly typed element.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic AnnotationTypeMismatchException(Methodelement, String foundType)
element - the
Method object for the annotation element
foundType - the (erroneous) type of data found in the annotation. This string may, but is not required to, contain the value as well. The exact format of the string is unspecified.
public Methodelement()
public StringfoundType()