public class IncompleteAnnotationException extends RuntimeException
AnnotatedElement
Constructor and Description |
---|
IncompleteAnnotationException(Class<? extends Annotation> annotationType,
String elementName)
Constructs an IncompleteAnnotationException to indicate that
the named element was missing from the specified annotation type.
|
Modifier and Type | Method and Description |
---|---|
Class<? extends Annotation> |
annotationType()
Returns the Class object for the annotation type with the
missing element.
|
String |
elementName()
Returns the name of the missing element.
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public IncompleteAnnotationException(Class<? extends Annotation> annotationType, String elementName)
annotationType
- the Class object for the annotation typeelementName
- the name of the missing elementNullPointerException
- if either parameter is null
public Class<? extends Annotation> annotationType()
public String elementName()