public class IncompleteAnnotationException extends RuntimeException
AnnotatedElement
,
Serialized FormConstructor 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, toString
public IncompleteAnnotationException(Class<? extends Annotation> annotationType, String elementName)
NullPointerException
- if either parameter is null
annotationType
- 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-2022 aicas GmbH. All Rights Reserved.