p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 (http://p2p.wrox.com/forumdisplay.php?f=252)
-   -   Exception Handling (http://p2p.wrox.com/showthread.php?t=60888)

NewTitle2007 August 7th, 2007 03:35 AM

Exception Handling
 
Hi,

 I completed ch1 coding, in C#, but I wonder why the author of that chapter didn't write complete exception handling code. I know that I need to create a class which derives ApplicationException and instantiate it in try/catch blocks of the business classes but what after that? are the authors taking care of that in the book?
Jack


Imar August 7th, 2007 04:41 AM

Hi there,

It's no longer necessary to inherit from ApplicationException, although you could. Previous guidelines of Microsoft did that, but it's no longer required.

Take a look at chapter 6, the Wrox Blog for some more ideas about centrally handling exception in Global.asax.

Cheers,

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004

NewTitle2007 August 7th, 2007 05:14 AM

Ok Imar thanks I will do that. I thought it's best to use the ApplicationException. I know I will learn a lot from your book.


Imar August 7th, 2007 06:53 AM

Take a look here: http://blogs.msdn.com/brada/archive/.../25/96251.aspx

Searching for ApplicationException should give you more results....


Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004

NewTitle2007 August 7th, 2007 07:37 AM

Ok thanks
up to now you are the only author, that I purchased a book for, who support his book and answers my questions. I will be purchasing your books from now on. don't you plan on publishing a more advanced book on asp.net 2.0 with the same approach?


Imar August 7th, 2007 01:51 PM

Hi Jack,

Nope, sorry, not working on another ASP.NET 2.0 book right now.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004

NewTitle2007 August 8th, 2007 04:03 AM

Ok thanks for this nice book



All times are GMT -4. The time now is 07:03 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.