ClassNotFoundException
in that ClassNotFoundException
is a
checked exception, whereas this exception is unchecked.
Note that this exception may be used when undefined type variables are accessed as well as when types (e.g., classes, interfaces or annotation types) are loaded. In particular, this exception can be thrown by the API used to read annotations reflectively.
java.lang.reflect.AnnotatedElement
Modifier and Type | Field and Description |
---|---|
private static final long | |
private String | typeName
The type name. |
Access | Constructor and Description |
---|---|
public | TypeNotPresentException(String
the fully qualified name of the unavailable type typeName, Throwable the exception that was thrown when the system attempted to
load the named type, or cause)null if unavailable or inapplicableConstructs a |
Modifier and Type | Method and Description |
---|---|
public String | Returns: the fully qualified name of the unavailable typeReturns the fully qualified name of the unavailable type. |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID Hides java. |
typeName | back to summary |
---|---|
private String typeName The type name. |
TypeNotPresentException | back to summary |
---|---|
public TypeNotPresentException(String typeName, Throwable cause) Constructs a |
typeName | back to summary |
---|---|
public String typeName() Returns the fully qualified name of the unavailable type.
|