java.lang.annotation
public class AnnotationTypeMismatchException extends RuntimeException
Constructor and Description |
---|
AnnotationTypeMismatchException(Method m,
String type)
Constructs an
AnnotationTypeMismatchException
which is due to a mismatched type in the annotation
element, m . |
Modifier and Type | Method and Description |
---|---|
Method |
element()
Returns the element from the annotation, for which a
mismatch occurred.
|
String |
foundType()
Returns the erroneous type used by the element,
represented as a
String . |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AnnotationTypeMismatchException(Method m, 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
.