Re: suppress 'variable is declared but never used' for exception variables?
From: mikeb (mailbox.google_at_nospam.mailnull.com)
Date: 06/18/04
- Next message: Jon Skeet [C# MVP]: "Re: Multi-threading article finally "finished" - reviewers welcome"
- Previous message: Jackson Davis [MS]: "RE: SOS! ORA-03114: not connected to ORACLE && MS's Bug??"
- In reply to: Jon Skeet [C# MVP]: "Re: suppress 'variable is declared but never used' for exception variables?"
- Next in thread: mikeb: "Re: suppress 'variable is declared but never used' for exception variables?"
- Reply: mikeb: "Re: suppress 'variable is declared but never used' for exception variables?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 18 Jun 2004 08:50:50 -0700
Jon Skeet [C# MVP] wrote:
>
> While this will work, it would be better just to not declare WebExcp at
> all:
>
> catch (Exception)
> {
> ...
> }
>
Normally, yes. However, sometimes I have the exception variable there
so I can examine it when debugging.
-- mikeb
- Next message: Jon Skeet [C# MVP]: "Re: Multi-threading article finally "finished" - reviewers welcome"
- Previous message: Jackson Davis [MS]: "RE: SOS! ORA-03114: not connected to ORACLE && MS's Bug??"
- In reply to: Jon Skeet [C# MVP]: "Re: suppress 'variable is declared but never used' for exception variables?"
- Next in thread: mikeb: "Re: suppress 'variable is declared but never used' for exception variables?"
- Reply: mikeb: "Re: suppress 'variable is declared but never used' for exception variables?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|