Again, this is also a place where some Java background would help, since
Java guys have been wrestling with this problem for five years now. Granted
some of the technical details differ a bit (the Java language requires catch
blocks for checked exceptions, for example, where C# has no notion of a
"checked" vs "unchecked" exception), but some of the core concepts can still
be leveraged.

Ted Neward
{.NET || Java} Course Author & Instructor, DevelopMentor
(http://www.develop.com)
http://www.javageeks.com/tneward
http://www.clrgeeks.com/tneward

----- Original Message -----
From: "Sam Gentile" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 29, 2002 5:00 AM
Subject: Re: [DOTNET] Need a good real-world C# Exceptions Resource or
Stategy for Library


> Agreed that it's a must-read book. That's about the only chapter I
> haven't read. I will now. Thanks.
>
> Sam Gentile
> Co-Author Wrox Professional Visual C++.NET (ISBN 1861005962 )
>
> [EMAIL PROTECTED]
> www.project-inspiration.com/sgentile
> http://www.project-inspiration.com/sgentile/DotNet.htm
> BLOG: http://radio.weblogs.com/0105852/
> http://www.project-inspiration.com/sgentile/ScienceFiction.htm
>
>
>
>
>
> -----Original Message-----
> From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of
> Marco Russo
> Sent: Wednesday, May 29, 2002 2:46 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [DOTNET] Need a good real-world C# Exceptions Resource or
> Stategy for Library
>
> Sam,
>
> You have to read chapter 18 (Exceptions) of Jeffrey Richter's "Applied
> Microsoft .NET Framework Programming" book.
> It is complete, exhaustive and full of useful consideration, expecially
> when Jeffrey point your attention to SDK guideline inconsistencies.
> It's not a simple explanation of the exception syntax at all.
> It's a "must read" book, and this is one of the "must must read"
> chapters.
>
> Marco
>
> -----Original Message-----
> From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of
> Sam Gentile
> Sent: marted́ 28 maggio 2002 21.38
> To: [EMAIL PROTECTED]
> Subject: [DOTNET] Need a good real-world C# Exceptions Resource or
> Stategy for Library
>
>
> I have just been poring through C# books and no one seems to address
> this well. Sure, otherwise great books like Jesse Liberty's "Progarmming
> C#" talk about Exceptions but all the examples are too trivial. The
> examples just shoot out an "I am here" kind of thing in the catch
> handler. Actually some C# books don't even discuss it!! I need something
> more.
>
> Lets suppose I am/have creating a C# library of classes in a namespace.
> I want to put in full exception handling. I have some circumstances
> where I am creating files and reading them with System.IO classes, I am
> doing a lot of things with System.Xml. The thing is that I want to
> define and implement a sound exception processing strategy. Obviously, I
> don't really want to handle exceptions in a library by putting up
> System.Console.WriteLine("Can't open file"). I want to throw them up to
> the caller, but what? Suppose I catch an ArgumentNullException on a
> FileStream constructiuon. Does it make sense to define my custom
> exceptions and throw those up? Are there any good C# resources that show
> real exception processing/good pratices?
>
>
>
> ---------------------
> Sam Gentile
> .NET Consultant
> Co-author: Wrox Visual C++ .NET: A primer for C++ developers
> BLOG: http://radio.weblogs.com/0105852/
> http://www.project-inspiration.com/sgentile/DotNet.htm
> http://www.project-inspiration.com/sgentile/
> ---------------------------
>
>
>
>
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
> You can read messages from the DOTNET archive, unsubscribe from DOTNET,
> or subscribe to other DevelopMentor lists at http://discuss.develop.com.
>
> You can read messages from the DOTNET archive, unsubscribe from DOTNET,
> or
> subscribe to other DevelopMentor lists at http://discuss.develop.com.
>
> You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
> subscribe to other DevelopMentor lists at http://discuss.develop.com.
>

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to