Click here to Skip to main content
       

.NET Framework

 
GeneralRe: How to force rendering to generate an ID? PinmemberAtALossHere5-Oct-12 3:26 
GeneralRe: How to force rendering to generate an ID? PinmvpSandeep Mewara5-Oct-12 3:30 
GeneralRe: How to force rendering to generate an ID? PinmemberAtALossHere5-Oct-12 4:51 
AnswerRe: How to force rendering to generate an ID? PinmemberAtALossHere5-Oct-12 4:58 
QuestionCustom Class Exception Management / Setup PinmemberMike-MadBadger4-Oct-12 1:40 
AnswerRe: Custom Class Exception Management / Setup PinprotectorPete O'Hanlon4-Oct-12 1:50 
GeneralRe: Custom Class Exception Management / Setup PinmemberMike-MadBadger4-Oct-12 2:27 
GeneralRe: Custom Class Exception Management / Setup PinprotectorPete O'Hanlon4-Oct-12 2:32 
Mike-MadBadger wrote:
I had read into it that what I am doing is saying that if anything I wasn't
expecting happens, just re-throw the same thing to ensure you don't lose it,
i.e. it's a side effect of a Try block. Maybe I assumed that without it I would
in effect be 'swallowing' all other exceptions, but maybe that only happens if I
catch the general purpose one and then leave the catch block empty?

Actually, what I was referring to was don't bother catching it at all. When you catch and throw, without doing anything with the exception, it's a waste of time. So, in your case, all you needed to catch was the IndexOutOfRangeException. Any other exception is still going to show your method in the stack trace, so there is still context there for you to work with.
 
I hope that explains it better.

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos

CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

QuestionI need an idea for program PinmemberCihangir Giray Han3-Oct-12 22:02 
AnswerRe: I need an idea for program PinprotectorPete O'Hanlon3-Oct-12 22:08 
GeneralRe: I need an idea for program PinmemberCihangir Giray Han3-Oct-12 22:33 
GeneralRe: I need an idea for program PinprotectorPete O'Hanlon3-Oct-12 22:39 
GeneralRe: I need an idea for program PinmemberCihangir Giray Han4-Oct-12 1:47 
GeneralRe: I need an idea for program PinprotectorPete O'Hanlon4-Oct-12 1:51 
QuestionEntity Framework, Import Function Stored Procs & Data Services PinmemberStewart Judson1-Oct-12 23:57 
QuestionHow to use FileSystemWatcher Control ? PinmemberDEEPAK9489@GMAIL.COM1-Oct-12 16:47 
AnswerRe: How to use FileSystemWatcher Control ? PinmemberJF20151-Oct-12 19:05 
AnswerRe: How to use FileSystemWatcher Control ? PinmemberEddy Vluggen2-Oct-12 4:42 
QuestionHow to know .NET Framework, deeply? Pinmemberatoi_powered1-Oct-12 12:22 
AnswerRe: How to know .NET Framework, deeply? PinmemberEddy Vluggen2-Oct-12 4:40 
GeneralRe: How to know .NET Framework, deeply? Pinmemberisenthil2-Oct-12 6:27 
GeneralRe: How to know .NET Framework, deeply? Pinmemberatoi_powered2-Oct-12 8:23 
QuestionCrytal reports Pinmemberyaswanth0011-Oct-12 1:27 
AnswerRe: Crytal reports PinprotectorPete O'Hanlon1-Oct-12 1:46 
GeneralRe: Crytal reports Pinmemberyaswanth0011-Oct-12 7:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 29 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid