Re: Design: Custom Exception Usage
- From: "Anthony Jones" <Ant@xxxxxxxxxxxxxxxx>
- Date: Tue, 8 Apr 2008 12:28:47 +0100
"DSK Chakravarthy" <dskcheck@xxxxxxx> wrote in message
news:841424AE-11E1-4D70-B5FE-62A828B86044@xxxxxxxxxxxxxxxx
First thing first, Try to avoid the Exceptions to the extent that you can.
Use is only in case where you can't handle.
That's reasonable.
Secondly, when you want to propogate any messages back to the calling
method, use OUT parameter from C# or use ByRef at VB.NET
That IMO isn't
My advice would be avoid OUT or ByRef parameter like the plague.
The TryParse pattern has made this sort of thing legitimate but its a poor
pattern.
--
Anthony Jones - MVP ASP/ASP.NET
.
- Follow-Ups:
- Re: Design: Custom Exception Usage
- From: Terrence Jones
- Re: Design: Custom Exception Usage
- From: Peter Duniho
- Re: Design: Custom Exception Usage
- From: Registered User
- Re: Design: Custom Exception Usage
- References:
- Design: Custom Exception Usage
- From: Terrence Jones
- Re: Design: Custom Exception Usage
- From: DSK Chakravarthy
- Design: Custom Exception Usage
- Prev by Date: Re: Handling SPAM posts
- Next by Date: LINQ to SQL - Help with restructuring a query
- Previous by thread: Re: Design: Custom Exception Usage
- Next by thread: Re: Design: Custom Exception Usage
- Index(es):
Relevant Pages
|