Re: Current Exception
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Wed, 22 Jun 2005 17:39:21 +0100
Adam Clauss <cabadam@xxxxxxxx> wrote:
> Could you create your own "global" variable (a static member of some class)
> and set it yourself when the catch the exception (it HAS to be caught
> somewhere...)
> Then in whatever code you are actually handling it, you can check that
> static member (and set it to null when done?)
That wouldn't help at the finally block level though, because (assuming
I'm understanding Chad right) the finally block is going to execute
before the catch block (as the catch block is higher up the call
stack).
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
.
- Follow-Ups:
- Re: Current Exception
- From: Chad Z. Hower aka Kudzu
- Re: Current Exception
- References:
- Current Exception
- From: Chad Z. Hower aka Kudzu
- RE: Current Exception
- From: Salvador
- RE: Current Exception
- From: Chad Z. Hower aka Kudzu
- Re: Current Exception
- From: Adam Clauss
- Current Exception
- Prev by Date: Re: Current Exception
- Next by Date: PropertyGrid and ArrayList
- Previous by thread: Re: Current Exception
- Next by thread: Re: Current Exception
- Index(es):
Relevant Pages
|
Loading