FileDocCategorySizeDatePackage
ClassNotFoundException.javaAPI DocAndroid 1.5 API2696Wed May 06 22:41:04 BST 2009java.lang

ClassNotFoundException

public class ClassNotFoundException extends Exception
Thrown when a class loader is unable to find a class.
since
Android 1.0

Fields Summary
private static final long
serialVersionUID
private Throwable
ex
Constructors Summary
public ClassNotFoundException()
Constructs a new {@code ClassNotFoundException} that includes the current stack trace.

since
Android 1.0


                        
      
        super((Throwable) null);
    
public ClassNotFoundException(String detailMessage)
Constructs a new {@code ClassNotFoundException} with the current stack trace and the specified detail message.

param
detailMessage the detail message for this exception.
since
Android 1.0

        super(detailMessage, null);
    
public ClassNotFoundException(String detailMessage, Throwable exception)
Constructs a new {@code ClassNotFoundException} with the current stack trace, the specified detail message and the exception that occurred when loading the class.

param
detailMessage the detail message for this exception.
param
exception the exception which occurred while loading the class.
since
Android 1.0

        super(detailMessage);
        ex = exception;
    
Methods Summary
public java.lang.ThrowablegetCause()
Returns the cause of this Throwable, or {@code null} if there is no cause.

return
Throwable the receiver's cause.

        return ex;
    
public java.lang.ThrowablegetException()
Returns the exception which occurred when loading the class.

return
Throwable the exception which occurred while loading the class.

        return ex;