Click here to Skip to main content
15,889,216 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: How to force rendering to generate an ID? Pin
Sandeep Mewara5-Oct-12 2:24
mveSandeep Mewara5-Oct-12 2:24 
GeneralRe: How to force rendering to generate an ID? Pin
AtALossHere5-Oct-12 3:26
AtALossHere5-Oct-12 3:26 
GeneralRe: How to force rendering to generate an ID? Pin
Sandeep Mewara5-Oct-12 3:30
mveSandeep Mewara5-Oct-12 3:30 
GeneralRe: How to force rendering to generate an ID? Pin
AtALossHere5-Oct-12 4:51
AtALossHere5-Oct-12 4:51 
AnswerRe: How to force rendering to generate an ID? Pin
AtALossHere5-Oct-12 4:58
AtALossHere5-Oct-12 4:58 
QuestionCustom Class Exception Management / Setup Pin
M-Badger4-Oct-12 1:40
M-Badger4-Oct-12 1:40 
AnswerRe: Custom Class Exception Management / Setup Pin
Pete O'Hanlon4-Oct-12 1:50
mvePete O'Hanlon4-Oct-12 1:50 
GeneralRe: Custom Class Exception Management / Setup Pin
M-Badger4-Oct-12 2:27
M-Badger4-Oct-12 2:27 
Thanks, Pete. In terms of adding value I am assuming that an exception raised by a method that you didn't call is harder to trace / debug, whereas if you have the full history then it should start with the method you called and you can then trace back to where that call went and probably have a better idea of where it went wrong - i.e. there's no apparent direct benefit of what I am doing in this (and most) cases other than tracing exceptions.
Pete O'Hanlon wrote:
in your sample though, you catch and throw the general purpose exception for no reason
That's something I saw in one of the CP articles (I think I interpreted it from this one[^]). 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?

Does your comment mean that it is redundant - i.e. is that what would have happended anyway, even without that last catch statement?

Thanks,
Mike
GeneralRe: Custom Class Exception Management / Setup Pin
Pete O'Hanlon4-Oct-12 2:32
mvePete O'Hanlon4-Oct-12 2:32 
QuestionI need an idea for program Pin
Cihangir Giray Han3-Oct-12 22:02
Cihangir Giray Han3-Oct-12 22:02 
AnswerRe: I need an idea for program Pin
Pete O'Hanlon3-Oct-12 22:08
mvePete O'Hanlon3-Oct-12 22:08 
GeneralRe: I need an idea for program Pin
Cihangir Giray Han3-Oct-12 22:33
Cihangir Giray Han3-Oct-12 22:33 
GeneralRe: I need an idea for program Pin
Pete O'Hanlon3-Oct-12 22:39
mvePete O'Hanlon3-Oct-12 22:39 
GeneralRe: I need an idea for program Pin
Cihangir Giray Han4-Oct-12 1:47
Cihangir Giray Han4-Oct-12 1:47 
GeneralRe: I need an idea for program Pin
Pete O'Hanlon4-Oct-12 1:51
mvePete O'Hanlon4-Oct-12 1:51 
QuestionEntity Framework, Import Function Stored Procs & Data Services Pin
Worried Brown Eyes1-Oct-12 23:57
Worried Brown Eyes1-Oct-12 23:57 
QuestionHow to use FileSystemWatcher Control ? Pin
DEEPAK9489@GMAIL.COM1-Oct-12 16:47
DEEPAK9489@GMAIL.COM1-Oct-12 16:47 
AnswerRe: How to use FileSystemWatcher Control ? Pin
JF20151-Oct-12 19:05
JF20151-Oct-12 19:05 
AnswerRe: How to use FileSystemWatcher Control ? Pin
Eddy Vluggen2-Oct-12 4:42
professionalEddy Vluggen2-Oct-12 4:42 
QuestionHow to know .NET Framework, deeply? Pin
atoi_powered1-Oct-12 12:22
atoi_powered1-Oct-12 12:22 
AnswerRe: How to know .NET Framework, deeply? Pin
Eddy Vluggen2-Oct-12 4:40
professionalEddy Vluggen2-Oct-12 4:40 
GeneralRe: How to know .NET Framework, deeply? Pin
isenthil2-Oct-12 6:27
isenthil2-Oct-12 6:27 
GeneralRe: How to know .NET Framework, deeply? Pin
atoi_powered2-Oct-12 8:23
atoi_powered2-Oct-12 8:23 
QuestionCrytal reports Pin
yaswanth0011-Oct-12 1:27
yaswanth0011-Oct-12 1:27 
AnswerRe: Crytal reports Pin
Pete O'Hanlon1-Oct-12 1:46
mvePete O'Hanlon1-Oct-12 1:46 

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

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