public class IncompleteAnnotationException extends RuntimeException
AnnotatedElement,
Serialized Form| 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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic IncompleteAnnotationException(Class<? extends Annotation> annotationType, String elementName)
NullPointerException - if either parameter is nullannotationType - the Class object for the annotation typeelementName - the name of the missing elementpublic Class<? extends Annotation> annotationType()
public String elementName()
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2021 aicas GmbH. All Rights Reserved.