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)
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()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.