Why do we need different exception classes in Java?
posted 7 years ago
We have one main exception class called "Exception". Also java provides different exceptions like FileNotFoundException,IllegalArgumentException ......
We can handle exception by catching "Exception" class. What is the advantage of having more number of child exception classes.
In my project if i want follow some best exception handling methods, When to create my own exception?