I am new to Design pattern. Can any one suggest right design pattern for custom error handling in asp.net.
Not using any third party framework for Error handling.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
i think you should use a couple:
1) Singleton for Logger that writes log throughout all application.
2) IoC to create a loose coupled application.
PS:
You should not create your own wheel and use some excellent tools that are on common use today
Logging:
1) log4net – for logging and handling exceptions.
2) Enterprise Library Log – very nice and easy to use.
IoC – Inversion of Control:
1) Ninject – my favorite
2) Unity
and many more…..
as you can see
here