English | Site Directory

Android - An Open Handset Alliance Project

java.lang
public class

java.lang.ClassNotFoundException

java.lang.Object
java.lang.Throwable Serializable
java.lang.Exception
java.lang.ClassNotFoundException

This exception is thrown when a classloader is unable to find a class.

Summary

Public Constructors

          ClassNotFoundException()
Constructs a new instance of this class with its walkback filled in.
          ClassNotFoundException(String detailMessage)
Constructs a new instance of this class with its walkback and message filled in.
          ClassNotFoundException(String detailMessage, Throwable exception)
Constructs a new instance of this class with its walkback, message and exception filled in.

Public Methods

        Throwable  getCause()
Answers the cause of this Throwable, or null if there is no cause.
        Throwable  getException()
Answers the exception which occurred when loading the class.
Methods inherited from class java.lang.Throwable
Methods inherited from class java.lang.Object

Details

Public Constructors

public ClassNotFoundException()

Constructs a new instance of this class with its walkback filled in.

public ClassNotFoundException(String detailMessage)

Constructs a new instance of this class with its walkback and message filled in.

Parameters

detailMessage String The detail message for the exception.

public ClassNotFoundException(String detailMessage, Throwable exception)

Constructs a new instance of this class with its walkback, message and exception filled in.

Parameters

detailMessage String The detail message for the exception.
exception Throwable The exception which occurred while loading the class.

Public Methods

public Throwable getCause()

Answers the cause of this Throwable, or null if there is no cause.

Returns

  • Throwable The receiver's cause.

public Throwable getException()

Answers the exception which occurred when loading the class.

Returns

  • Throwable The exception which occurred while loading the class.
Build m5-rc15i - 10 Jun 2008 13:54