java.lang.annotation
public class IncompleteAnnotationException extends RuntimeException
Constructor and Description |
---|
IncompleteAnnotationException(Class<? extends Annotation> type,
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 |
---|---|
Class<? extends Annotation> |
annotationType()
Returns the class representing the type of annotation
from which an element was missing.
|
String |
elementName()
Returns the name of the missing annotation element.
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public IncompleteAnnotationException(Class<? extends Annotation> type, 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 Class<? extends Annotation> annotationType()
public String elementName()