Home Java Exceptions Java ClassNotFoundException Class Hierarchy Diagram



Java ClassNotFoundException Class Hierarchy Diagram
Posted on: December 28, 2012 at 12:00 AM
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

Constructor
Description
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()

Related Tags for Java ClassNotFoundException Class Hierarchy Diagram:


More Tutorials from this section

Ask Questions?    Discuss: Java ClassNotFoundException Class Hierarchy Diagram  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.