How can I tell Visual Studio to not catch a particular exception?

Posted by Noel Kennedy on Stack Overflow See other posts from Stack Overflow or by Noel Kennedy
Published on 2010-05-25T15:47:32Z Indexed on 2010/05/25 15:51 UTC
Read the original article Hit count: 239

I have a particular type of exception that I would like Visual Studio to not catch with the Exception Assistant. Essentially I would like it just to let my normal exception handling infrastructure deal with it.

The exception is an inheritor of System.Exception which I wrote and have the source code for. Any where this is thrown I want VS to not catch it, ie it is not useful to just supress a single throw new BlahException(); in code. This is because the exception is thrown a lot, and I don't want to have to supress every single instance individually.

In case it makes a difference I am on Visual Studio 2010 Ultimate, Framework 3.5 SP1.

© Stack Overflow or respective owner

Related posts about c#

Related posts about visual-studio