Serializable
Thrown when an application tries to load in a class through its string name using:
forName
method in class Class
.findSystemClass
method in class ClassLoader
.loadClass
method in class ClassLoader
.but no definition for the class with the specified name could be found.
Constructors
Constructs a ClassNotFoundException
with no detail message.
Constructs a ClassNotFoundException
with the specified detail message.
Constructs a ClassNotFoundException
with the specified detail message and optional exception that was raised while loading the class.
Returns the exception that was raised if an error occurred while attempting to load the class.
Methods declared in class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ClassNotFoundException()
Constructs a ClassNotFoundException
with no detail message.
Constructs a ClassNotFoundException
with the specified detail message.
s
- the detail message.
Constructs a ClassNotFoundException
with the specified detail message and optional exception that was raised while loading the class.
s
- the detail message
ex
- the exception that was raised while loading the class
Returns the exception that was raised if an error occurred while attempting to load the class. Otherwise, returns null
.
Throwable.getCause()
method is now the preferred means of obtaining this information.
Exception
that was raised while loading a class
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4