tag:blogger.com,1999:blog-3354578112415392473.post2455862926106040201..comments2022-03-25T19:20:33.083+00:00Comments on Gareth Thomas Hill: Robust .NET Exception HandlingGareth Thomas Hillhttp://www.blogger.com/profile/13811920704142646474noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-3354578112415392473.post-25650004346952488992009-12-27T19:00:58.805+00:002009-12-27T19:00:58.805+00:00Thanks for the comments Lee.
I've re-read th...Thanks for the comments Lee. <br /><br />I've re-read the ApplicationException section and you are correct - I just read it wrong!<br /><br />Great custom handler by the way - just finished implementing it in an existing web application.Gareth Thomas Hillhttps://www.blogger.com/profile/13811920704142646474noreply@blogger.comtag:blogger.com,1999:blog-3354578112415392473.post-61402128242581447482009-12-27T03:19:01.763+00:002009-12-27T03:19:01.763+00:00Really glad you enjoyed the book!
Just a clarific...Really glad you enjoyed the book!<br /><br />Just a clarification - one of your bullet points states "Custom exceptions should be derived from System.ApplicationException rather than directly from System.Exception".<br /><br />I certainly hope I didn't leave that impression. ;) Actually, the OPPOSITE is the case -- one should derive custom exception classes directly from System.Exception, not System.ApplicationException.<br /><br />If you look at the CLR, you'll see that ApplicationException derives from Exception, but adds no utility to it at all. That being the case, ApplicationException does nothing but add a extra layer of inheritance you don't need.<br /><br />Unfortunately, I didn't really go into too much depth about custom exceptions in the book. Mostly due to space considerations, but also because custom exceptions are a framework thing, and not so much and ASP.NET web development thing.<br /><br />Anyway, let me know if you have any questions about the material, and thanks for the very kind review.Lee Dumondhttps://www.blogger.com/profile/18132558313332060064noreply@blogger.com