RE: Why is the compiler flagging this variable as unassigned?
- From: "noisemaker" <noisemaker@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 12 Sep 2005 08:34:17 -0700
I didn't see this in any of the replies, but if you write the catch block
like this:
catch( exception ex)
{
throw;
}
you will rethrow the exception that you received with no changes. All
information will be retained. You will, however get a warning for not using
ex. This will allow you to place a break on the catch block for
troubleshooting purposes and view ex to see what is going on.
Chuck
.
- Follow-Ups:
- Re: Why is the compiler flagging this variable as unassigned?
- From: Joseph Geretz
- Re: Why is the compiler flagging this variable as unassigned?
- References:
- Why is the compiler flagging this variable as unassigned?
- From: Joseph Geretz
- Why is the compiler flagging this variable as unassigned?
- Prev by Date: Re: Rationale for CS0536?
- Next by Date: Re: Opening a new email in Outlook from a windows form (Without sending the email).
- Previous by thread: Re: Why is the compiler flagging this variable as unassigned?
- Next by thread: Re: Why is the compiler flagging this variable as unassigned?
- Index(es):
Relevant Pages
|