Can we extend the Throwable class instead of Exception Class while creating our own custom Exception? Please Give Explanation?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ramesh_Kumar
Posted On:   Wednesday, February 13, 2008 06:02 AM

Can we extend the Throwable class instead of Exception Class while creating our own custom Exception? Please Give Explanation?

Re: Can we extend the Throwable class instead of Exception Class while creating our own custom Exception? Please Give Explanation?

Posted By:   Stephen_McConnell  
Posted On:   Wednesday, February 13, 2008 10:36 AM

Yes, one can extend the Throwable class. However, what one looses is the difference between "Error" and "Exception", so one should not.


If that doesn't bother you, then go ahead.


Stephen McConnell

About | Sitemap | Contact