public class IncompleteAnnotationException extends java.lang.RuntimeException
| Constructor and Description |
|---|
IncompleteAnnotationException(java.lang.Class<? extends Annotation> type,
java.lang.String name)
Constructs a new
IncompleteAnnotationException
which indicates that the element, name, was missing
from the annotation, type at compile time and does
not have a default value. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<? extends Annotation> |
annotationType()
Returns the class representing the type of annotation
from which an element was missing.
|
java.lang.String |
elementName()
Returns the name of the missing annotation element.
|
public IncompleteAnnotationException(java.lang.Class<? extends Annotation> type, java.lang.String name)
IncompleteAnnotationException
which indicates that the element, name, was missing
from the annotation, type at compile time and does
not have a default value.type - the type of annotation from which an element is missing.name - the name of the missing element.public java.lang.Class<? extends Annotation> annotationType()
public java.lang.String elementName()