In this section we will discuss about the java.lang.ClassNotFoundException class hierarchy diagram.
Java ClassNotFoundException Class Hierarchy Diagram
In this section we will discuss about the java.lang.ClassNotFoundException class hierarchy diagram.
This class extends the java.lang.Exception class. ClassNotFoundException is generated when it is tried to load a class using forName(), findSystemClass(), loadClass() method and the class definition is not found with the specified string. ClassNotFoundException class hierarchy diagram is given below :
Constructor Detail
ClassNotFoundException() | This is a default constructor creates ClassNotFoundException object. Syntax : public ClassNotFoundException() |
ClassNotFoundException(String s) | This constructor creates a ClassNotFoundException object with the given
message detail. Syntax : public ClassNotFoundException(String msg) |
ClassNotFoundException(String s, Throwable ex) | This constructor creates a ClassNotFoundException object with the given
message detail and the exception generated during loading of class. Syntax : public ClassNotFoundException(String s, Throwable ex) |
Method Detail
- getCause() : This method is used to find out the reason
that why this exception generated.
Syntax : public Throwable getCause()
- getException() : This method is used to get the exception
on occurrence of an error.
Syntax : public Throwable getException()