Red Gate forums :: View topic - Don't understand results
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
Exception Hunter 2
Exception Hunter 2 forum

Don't understand results

Search in Exception Hunter 2 forum
Post new topic   Reply to topic
Jump to:  
Author Message
MattE303



Joined: 01 Jun 2010
Posts: 1

PostPosted: Tue Jun 01, 2010 7:25 pm    Post subject: Don't understand results Reply with quote

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:
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 ) {}

Back to top
View user's profile Send private message
slaphead99



Joined: 10 Mar 2010
Posts: 93

PostPosted: Wed Jun 02, 2010 2:49 pm    Post subject: Reply with quote

Sorry, looks like a bug has slipped through. I'll check this out myself and file a report. Thank you!
Back to top
View user's profile Send private message
slaphead99



Joined: 10 Mar 2010
Posts: 93

PostPosted: Wed Jun 09, 2010 4:39 pm    Post subject: Reply with quote

This has been logged as: CE-309

We have a major release coming out this year. Watch this spaaaaacee! Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group