locked
Exception Handling - exclude an exception type RRS feed

  • Question

  • User753316805 posted

    I have one policy set up to handle all exception types...

    <exceptionPolicies>

        <add name="MyExceptionPolicy">

           <exceptionTypes>

                <add name="All Exceptions" type="System.Exception" ... postHandlingAction="NotifyRethrow">

                    ...

                </add>

            </exceptionTypes>

        </add>

    </exceptionPolicies>

    What if I want to ignore Thread Abort Exceptions? Would I add the following to exceptionTypes? Thank you for your time.


           <exceptionTypes>

                <add name="All Exceptions" type="System.Exception" ... postHandlingAction="NotifyRethrow">
                <add name="Thread Abort Exceptions" type="System.Threading.ThreadAbortException" ... postHandlingAction="None">

                    ...

                </add

            </exceptionTypes>

    Monday, April 9, 2012 12:07 PM

All replies