public class ClassNotFoundException extends Exception
Constructor and Description |
---|
ClassNotFoundException()
Constructs a new
ClassNotFoundException that includes the current
stack trace. |
ClassNotFoundException(String detailMessage)
Constructs a new
ClassNotFoundException with the current stack
trace and the specified detail message. |
ClassNotFoundException(String detailMessage,
Throwable exception)
Constructs a new
ClassNotFoundException with the current stack
trace, the specified detail message and the exception that occurred when
loading the class. |
Modifier and Type | Method and Description |
---|---|
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.
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ClassNotFoundException()
ClassNotFoundException
that includes the current
stack trace.public ClassNotFoundException(String detailMessage)
ClassNotFoundException
with the current stack
trace and the specified detail message.detailMessage
- the detail message for this exception.public ClassNotFoundException(String detailMessage, Throwable exception)
ClassNotFoundException
with the current stack
trace, the specified detail message and the exception that occurred when
loading the class.detailMessage
- the detail message for this exception.exception
- the exception which occurred while loading the class.public Throwable getException()