31 January 2008

Using the Exception Hunter Command Line to find All Methods that throw a given Exception

Red-Gate’s new .NET tool – Exception Hunter – shows you the exceptions that can be thrown by a .NET method. However, many users would like to see this the other way round, i.e. pick an exception and see which methods throw that exception. We will endeavour to put this in the next version of Exception Hunter.

However, for the moment this functionality is available via the Exception Hunter command line. I’ve recorded a 5-minute video where I demonstrate how to use the command-line to find all methods that throw IO exceptions in a simple application. Have a look…

http://www.simple-talk.com/blogbits/jason_crease/Exception_Hunter_Command_Line_demo_skin.swf

To download the 14-day free-trial of the .NET Developer Bundle, which includes Exception Hunter, go to:

Download .NET Developer Bundle

Keep up to date with Simple-Talk

For more articles like this delivered fortnightly, sign up to the Simple-Talk newsletter

This post has been viewed 1378 times – thanks for reading.

  • Rate
    [Total: 0    Average: 0/5]
  • Share

Jason Crease studied maths and computer Science at Cambridge University and joined Redgate several years ago as a Test Engineer. He specialised for some time in Testing .NET applications and was part of the team responsible for the development of ANTS Profiler and .NET Reflector. After working as a DevOps engineer supervising Redgate's own IT systems, he joined the DLM team, working on the practicalities of the management and automation of the application lifecycle.

View all articles by Jason Crease