java.lang.Object | ||||
↳ | java.lang.Throwable | |||
↳ | java.lang.Exception | |||
↳ | java.lang.RuntimeException | |||
↳ | java.lang.TypeNotPresentException |
Thrown when a program tries to access a class, interface, enum or annotation
type through a string that contains the type's name and the type cannot be
found. This exception is an unchecked alternative to
ClassNotFoundException
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Constructs a new
TypeNotPresentException
with the current stack
trace, a detail message that includes the name of the type that could not
be found and the
Throwable
that caused this exception.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Gets the fully qualified name of the type that could not be found.
|
[Expand]
Inherited Methods
|
|||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Throwable
|
|||||||||||||||||||||||||||||||||||||
From class
java.lang.Object
|
Constructs a new
TypeNotPresentException
with the current stack
trace, a detail message that includes the name of the type that could not
be found and the
Throwable
that caused this exception.
typeName | the fully qualified name of the type that could not be found. |
---|---|
cause |
the optional cause of this exception, may be
null
.
|
Gets the fully qualified name of the type that could not be found.