public class AnnotationNotForTargetException extends ReflectionException
AnnotationNotForTargetException is thrown if an Annotation should be
resolved for a specific ElementType that it is NOT targeted
for.AnnotationUtil.isRuntimeAnnotation(Class),
AnnotationUtil.getTypeAnnotation(Class, Class),
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static String |
MESSAGE_CODE |
private static long |
serialVersionUID |
KEY_ACCESSIBLE| Constructor and Description |
|---|
AnnotationNotForTargetException(Class<? extends Annotation> annotation,
ElementType target)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCode() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMessageprivate static final long serialVersionUID
public static final String MESSAGE_CODE
getCode(),
Constant Field Valuespublic AnnotationNotForTargetException(Class<? extends Annotation> annotation, ElementType target)
annotation - is the Class reflecting the Annotation.target - is the ElementType not targeted by the given
annotation.public String getCode()
Copyright © 2001–2019 mmm-Team. All rights reserved.