Serializablepublic class IncompleteAnnotationException extends RuntimeException
AnnotatedElement,
序列化表格| 构造器 | 说明 |
|---|---|
IncompleteAnnotationException(Class<? extends Annotation> annotationType,
String elementName) |
Constructs an IncompleteAnnotationException to indicate that
the named element was missing from the specified annotation type.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
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.
|
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 nullpublic Class<? extends Annotation> annotationType()
public String elementName()