java.lang
Class ClassNotFoundException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.ClassNotFoundException
All Implemented Interfaces:
Serializable

public class ClassNotFoundException
extends Exception

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

See Also:
Serialized Form

Constructor Summary
ClassNotFoundException()
          Constructs a new instance of this class with its walkback filled in.
ClassNotFoundException(java.lang.String detailMessage)
          Constructs a new instance of this class with its walkback and message filled in.
ClassNotFoundException(java.lang.String detailMessage, Throwable exception)
          Constructs a new instance of this class with its walkback, message and exception filled in.
 
Method Summary
 Throwable getCause()
          Answers the cause of this Throwable, or null if there is no cause.
 Throwable getException()
          Answers the exception which occured when loading the class.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassNotFoundException

public ClassNotFoundException()
Constructs a new instance of this class with its walkback filled in.


ClassNotFoundException

public ClassNotFoundException(java.lang.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.

ClassNotFoundException

public ClassNotFoundException(java.lang.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.
Method Detail

getException

public Throwable getException()
Answers the exception which occured when loading the class.

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

getCause

public Throwable getCause()
Answers the cause of this Throwable, or null if there is no cause.

Overrides:
getCause in class Throwable
Returns:
Throwable The receiver's cause.