S
SStory
When I right a class, I am wondering what are the best practices for error
handling?
Do I try..catch and trap the error and if so what do I do with it? Because
most likely the class user will want to know the information in the
exception....
That being the case do I just not catch it and let the user of the class
catch it and get all the information?
I know I could catch it and throw my own, but I'd have to tell them the same
thing the original exception already has so I think what is the point?
Please give me some best practices advice on this.
thanks,
Shane
handling?
Do I try..catch and trap the error and if so what do I do with it? Because
most likely the class user will want to know the information in the
exception....
That being the case do I just not catch it and let the user of the class
catch it and get all the information?
I know I could catch it and throw my own, but I'd have to tell them the same
thing the original exception already has so I think what is the point?
Please give me some best practices advice on this.
thanks,
Shane