java.lang
public class ClassNotFoundException extends Exception
Constructor and Description |
---|
ClassNotFoundException()
Create an exception without a message.
|
ClassNotFoundException(String s)
Create an exception with a message.
|
ClassNotFoundException(String s,
Throwable ex)
Create an exception with a message and chain it to the exception
which occurred while loading the class.
|
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
Returns the exception which occurred while loading the class,
otherwise returns null.
|
Throwable |
getException()
Returns the exception which occurred while loading the class,
otherwise returns null.
|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ClassNotFoundException()
public ClassNotFoundException(String s)
s
- the messagepublic ClassNotFoundException(String s, Throwable ex)
s
- the messageex
- the chained exceptionpublic Throwable getException()
Throwable.getCause()
.