posted 13 years ago
i was trying , and actually i had make my own exception class , but i m not getting it , why we need to make our own exception class , i m asking this because we can use Exception class or any of its sub class , and with the help of try catch we can give whatever error we want to give to our user for a particular exceptions , because we know what will be the expected exception at this particular block of code
like consider the two different program handled with different Exception class
1. is handled with myown Exception class
2. other is handled with the predefined super class called Exception
NOTE : but user will get appropriate error msg on the console saying