Build 1.0_r1(from source)

java.lang
Class ClassNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.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(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.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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(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(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()
Returns the exception which occurred when loading the class.

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

getCause

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

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

Build 1.0_r1(from source)

Please submit a feedback, bug or feature