public class AnnotationTypeMismatchException extends RuntimeException
AnnotatedElement
Constructor and Description |
---|
AnnotationTypeMismatchException(Method element,
String foundType)
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.
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AnnotationTypeMismatchException(Method element, String foundType)
element
- the Method object for the annotation elementfoundType
- 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 Method element()
public String foundType()