Don't understand results

Analyzes .NET assemblies for types of exceptions

Moderators: Luke Jefferson, Charles Brown, AndrewH, melvyn.harbour, Chris.Allen, dom.smith

Don't understand results

Postby MattE303 » Tue Jun 01, 2010 7:25 pm

I've just started playing with Exception Hunter as part of an evaluation and I'm confused by the following result. EH appears to be telling me that System.Exception (and everything derived from it) is unhandled in the following block of code (it lists System.Exception and its derivations in the "Unhandled Exceptions" panel). Specifically, it is highlighting the line that calls the LINQ method FirstOrDefault. I'm confused because clearly that isn't the case (System.Exception is being handled).
Code: Select all
try
{
   views = ProcedureViews.procedureViewsList.FirstOrDefault( v => v.ProcedureId == procedure.Identifier );

   if( views != null )
   {
      // already exists, move it to the top of the list

      ProcedureViews.procedureViewsList.Remove( views );

      ProcedureViews.procedureViewsList.Insert( 0, views );

      found = true;
   }
}
catch( System.Exception ) {}

MattE303
 
Posts: 1
Joined: Tue Jun 01, 2010 7:07 pm

Postby slaphead99 » Wed Jun 02, 2010 2:49 pm

Sorry, looks like a bug has slipped through. I'll check this out myself and file a report. Thank you!
slaphead99
 
Posts: 92
Joined: Wed Mar 10, 2010 2:27 pm

Postby slaphead99 » Wed Jun 09, 2010 4:39 pm

This has been logged as: CE-309

We have a major release coming out this year. Watch this spaaaaacee! :)
slaphead99
 
Posts: 92
Joined: Wed Mar 10, 2010 2:27 pm


Return to Exception Hunter 2

Who is online

Users browsing this forum: No registered users and 0 guests