|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.ClassNotFoundException
public class ClassNotFoundException
Thrown when a class is requested by reflection, but the class definition cannot be found. This exception is often chained from another Throwable.
Class.forName(String)
,
ClassLoader#findSystemClass(String)
,
ClassLoader#loadClass(String, boolean)
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Throwable |
---|
getLocalizedMessage, getMessage, initCause, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClassNotFoundException()
public ClassNotFoundException(String s)
s
- the messagepublic ClassNotFoundException(String s, Throwable ex)
s
- the messageex
- the chained exceptionMethod Detail |
---|
public Throwable getException()
Throwable.getCause()
.
public Throwable getCause()
getCause
in class Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |