Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 794145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:16:10+00:00 2026-05-14T22:16:10+00:00

Is there a way in VS2008 IDE for c# to see all the possible

  • 0

Is there a way in VS2008 IDE for c# to see all the possible exception types that can possibly originate from a method call or even for an entire try-catch block?

I know that intellisense or the object browser tells me this method can throw these types of exceptions but is there another way than using the object browser everytime? Something more accessible when coding? Furthermore, I don’t think intellisense or the object browser do anything more than read the XML code comments.

Shouldn’t it be possible to scan a class’s source and find all the exception types that can be thrown. (Forget path-ing based on method input, just scan the code for exception types)

Am I wrong? Extending this idea, you should be able to hover over the ‘try’ or ‘catch’ keywords and present a tooltip with all the types of exceptions that can be thrown.

My question boils down to, does a VS2008 add on like this exist? Does VS2010 do this perhaps? If not, could you implement it the way I’ve described, by scanning the class code for thrown exception types and would people find it useful. Exceptions bubble up so you have to scan every bit of code every method call, which I guess could be impractical, though I suppose you could build an index the first time and increase your speed that way.

(It might be a cool little project….)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T22:16:11+00:00Added an answer on May 14, 2026 at 10:16 pm

    What you’re looking for is Red-Gate Exception Hunter.

    However, Exception Hunter is a static analysis tool, and there’s no way it will be able to tell you everything for every piece of code there is.

    For instance, given the prevalence of IoC containers today, what kind of exceptions would you expect the following lines to be able to throw:

    var service = IoC.Resolve<ILogger>();
    service.Log("Here");
    

    It depends entirely on the actual type of logger being resolved, does it log to a file? to a database? to a network service? to the event log?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there way that I can read the file from remote server using fopen
Is there any way I can get VS2008 to provide further detail on how
Is there a way I can get a blank MVC template for VS2008? Like
Is there way to get file from windows xp command prompt? I tried to
is there way how to get name ov event from Lambda expression like with
Using C# in VS2005, is there special way to create properties in the IDE
In the Delphi IDE, you can hold control and click on a method to
Is there a way to prevent VS2008 creating browse info file files for C++
Is there any way for people using VS2008 to step into and read the
Is there a way to save the Toolbox settings in VS2008? I've added a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.