Wednesday, July 05, 2006

Exception handling

This is great article by Karl Seguin about proper exception handling:
Understanding and Using Exceptions
Here are the key points:
- Don't catch exceptions unless you can actually handle them
- Do know how to rethrow exceptions properly
- Do use using or try/finally often
- Don't swallow exceptions
- Do use a global handler to help you log and display a friendly error message

---
Exception handling in .Net (some general guidelines) by Marc Brooks.
---
Keywords: ASP.NET 2.0, C#, VB.NET

1 comment:

IDisposable said...

Thanks for the link. It's Marc by the way :)

Followers

About Me

My photo
Email me: blog@postjobfree.com