public class TypeNotPresentException extends RuntimeException
ClassNotFoundException
在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.