public class IncompleteAnnotationException extends RuntimeException
Constructor and Description |
---|
IncompleteAnnotationException(Class<? extends Annotation> annotationType,
String elementName)
Constructs an instance with the incomplete annotation type and the name
of the element that's missing.
|
Modifier and Type | Method and Description |
---|---|
Class<? extends Annotation> |
annotationType()
Returns the annotation type.
|
String |
elementName()
Returns the incomplete element's name.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public IncompleteAnnotationException(Class<? extends Annotation> annotationType, String elementName)
annotationType
- the annotation type.elementName
- the name of the incomplete element.public Class<? extends Annotation> annotationType()
public String elementName()