FileDocCategorySizeDatePackage
TypeNotPresentException.javaAPI DocAndroid 1.5 API2159Wed May 06 22:41:04 BST 2009java.lang

TypeNotPresentException

public 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}.
since
Android 1.0

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.

param
typeName the fully qualified name of the type that could not be found.
param
cause the optional cause of this exception, may be {@code null}.
since
Android 1.0


                                                                                              
         
        super("Type " + typeName + " not present", cause);
        this.typeName = typeName;
    
Methods Summary
public java.lang.StringtypeName()
Gets the fully qualified name of the type that could not be found.

return
the name of the type that caused this exception.

        return typeName;