Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
0 Points
8 Posts
Apr 09, 2012 04:07 PM|LINK
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>
</exceptionPolicies>
What if I want to ignore Thread Abort Exceptions? Would I add the following to exceptionTypes? Thank you for your time.
<add name="All Exceptions" type="System.Exception" ... postHandlingAction="NotifyRethrow"> <add name="Thread Abort Exceptions" type="System.Threading.ThreadAbortException" ... postHandlingAction="None">
</add
prefersgolfi...
0 Points
8 Posts
Exception Handling - exclude an exception type
Apr 09, 2012 04:07 PM|LINK
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>