加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090228223839/http://developer.android.com:80/reference/java/lang/ClassNotFoundException.html
public class

ClassNotFoundException

extends Exception
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.ClassNotFoundException

Class Overview

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()
Returns the cause of this Throwable, or null if there is no cause.
Throwable getException()
Returns the exception which occurred when loading the class.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

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 ()

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

Returns
  • Throwable The receiver's cause.

public Throwable getException ()

Returns the exception which occurred when loading the class.

Returns
  • Throwable The exception which occurred while loading the class.