ClassNotFoundExceptionpublic class ClassNotFoundException extends Exception Thrown when a class loader is unable to find a class. |
Fields Summary |
---|
private static final long | serialVersionUID | private Throwable | ex |
Constructors Summary |
---|
public ClassNotFoundException()Constructs a new {@code ClassNotFoundException} that includes the current
stack trace.
super((Throwable) null);
| public ClassNotFoundException(String detailMessage)Constructs a new {@code ClassNotFoundException} with the current stack
trace and the specified detail message.
super(detailMessage, null);
| public ClassNotFoundException(String detailMessage, Throwable exception)Constructs a new {@code ClassNotFoundException} with the current stack
trace, the specified detail message and the exception that occurred when
loading the class.
super(detailMessage);
ex = exception;
|
Methods Summary |
---|
public java.lang.Throwable | getCause()Returns the cause of this Throwable, or {@code null} if there is no
cause.
return ex;
| public java.lang.Throwable | getException()Returns the exception which occurred when loading the class.
return ex;
|
|