Last post Sep 15, 2010 07:47 AM by Sangeeth.India
Sep 15, 2010 01:54 AMfirstname.lastname@example.org|LINK
Can any one let me know "How to create a Custom Exception Handler using Microsoft Exception Handling Application Blocks"
I will be having a set of Exceptions which will be getting maintained in an XML File along with the User Friendly Messages for a particular Exception. Whenever an Exception occurs in the projects first it need to check with the Exceptions present in the
XML File and need to display the concerned user friendly message for that particular exception to the user..
I am not able to get an idea on "How to start with the Microsoft Exception Handler Application Block" to achieve this". Please help me in this regard...
Thanks and Regards,
Sep 15, 2010 07:47 AM|Sangeeth.India|LINK
To achieve this, you can derive your own class from the base class 'Exception' and you can then throw your customized exception from the catch block of ur code. The catch block would now catch not the generic exception but your customized exception.