public class AnnotationTypeMismatchException extends java.lang.RuntimeException
| Constructor and Description |
|---|
AnnotationTypeMismatchException(java.lang.reflect.Method m,
java.lang.String type)
Constructs an
AnnotationTypeMismatchException
which is due to a mismatched type in the annotation
element, m. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.reflect.Method |
element()
Returns the element from the annotation, for which a
mismatch occurred.
|
java.lang.String |
foundType()
Returns the erroneous type used by the element,
represented as a
String. |
public AnnotationTypeMismatchException(java.lang.reflect.Method m, java.lang.String type)
AnnotationTypeMismatchException
which is due to a mismatched type in the annotation
element, m. The erroneous type used for the
data in m is represented by the string,
type. This string is of an undefined format,
and may contain the value as well as the type.m - the element from the annotation.type - the name of the erroneous type found in m.public java.lang.reflect.Method element()
public java.lang.String foundType()
String. The format
of this String is not explicitly specified,
and may contain the value as well as the type.