public class IncompleteAnnotationException extends RuntimeException
AnnotatedElement
,
Serialized Form
Constructor and Description |
---|
IncompleteAnnotationException(类<? extends Annotation> annotationType, String elementName)
构建了一个incompleteannotationexception表明命名的元素是从指定的注释类型的缺失。
|
Modifier and Type | Method and Description |
---|---|
类<? extends Annotation> |
annotationType()
返回带有丢失元素的注释类型的类对象。
|
String |
elementName()
返回丢失元素的名称。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public IncompleteAnnotationException(类<? extends Annotation> annotationType, String elementName)
annotationType
-注释类型的类对象
elementName
-缺少的元素的名称
NullPointerException
如果任一参数是
null
public 类<? 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.