TypeNotPresentExceptionpublic class TypeNotPresentException extends RuntimeException 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
{@link java.lang.ClassNotFoundException}. |
Fields Summary |
---|
private static final long | serialVersionUID | private String | typeName |
Constructors Summary |
---|
public TypeNotPresentException(String typeName, Throwable cause)Constructs a new {@code TypeNotPresentException} with the current stack
trace, a detail message that includes the name of the type that could not
be found and the {@code Throwable} that caused this exception.
super("Type " + typeName + " not present", cause);
this.typeName = typeName;
|
Methods Summary |
---|
public java.lang.String | typeName()Gets the fully qualified name of the type that could not be found.
return typeName;
|
|