java.lang
Class ClassNotFoundException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.ClassNotFoundException
public class
ClassNotFoundExceptionextends
Exception Thrown when a class is requested by reflection, but the class definition
cannot be found. This exception is often chained from another Throwable.
Authors:- Brian Jones
- Eric Blake <ebb9@email.byu.edu>
See Also:
ClassNotFoundException
public ClassNotFoundException()
Create an exception without a message. Note that this initializes the
cause to null.
ClassNotFoundException
public ClassNotFoundException(java.lang.String s)
Create an exception with a message. Note that this initializes the
cause to null.
Parameters:
ClassNotFoundException
public ClassNotFoundException(java.lang.String s, java.lang.Throwable ex)
Create an exception with a message and chain it to the exception
which occurred while loading the class.
Since:Parameters:
getCause
public Throwable getCause()
Returns the exception which occurred while loading the class,
otherwise returns null.
Since:Returns:
- the cause of this exception
getException
public Throwable getException()
Returns the exception which occurred while loading the class,
otherwise returns null. This is a legacy method; the preferred choice
now is Throwable#getCause().
Since:Returns:
- the cause of this exception