public class TypeNotPresentException extends RuntimeException
ClassNotFoundException
是检查的异常,而这种异常是听之任之。
请注意,当访问未定义类型变量时,可能会使用此异常,以及当加载类型(例如,类、接口或注释类型)时。特别是,这种异常可以由API used to read annotations reflectively扔。
AnnotatedElement
,
Serialized Form
Constructor and Description |
---|
TypeNotPresentException(String typeName, Throwable cause)
建立一个命名与指定的事业型
TypeNotPresentException。
|
Modifier and Type | Method and Description |
---|---|
String |
typeName()
返回不可用类型的完全限定名称。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
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.