Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 14, 2012 09:27 PM by sukumarraju
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
All-Star
16931 Points
2999 Posts
May 14, 2012 09:27 PM|LINK
prefersgolfing want to ignore Thread Abort Exceptions? Would I add the following to exceptionTypes?
prefersgolfing <add name="All Exceptions" type="System.Exception" ... postHandlingAction="NotifyRethrow">
AllExceptions [System.Exception] throws Thread Abort Exception. In order to avoid specific exception simply avoid All Exceptions AND add other indivual exceptions that should be considered to exception policy.
Refer http://msdn.microsoft.com/en-us/library/ff647154.aspx
Download 'Hands on Labs with walk through tutorials at http://www.microsoft.com/en-us/download/details.aspx?id=6932
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>
sukumarraju
All-Star
16931 Points
2999 Posts
Re: Exception Handling - exclude an exception type
May 14, 2012 09:27 PM|LINK
AllExceptions [System.Exception] throws Thread Abort Exception. In order to avoid specific exception simply avoid All Exceptions AND add other indivual exceptions that should be considered to exception policy.
Refer http://msdn.microsoft.com/en-us/library/ff647154.aspx
Download 'Hands on Labs with walk through tutorials at http://www.microsoft.com/en-us/download/details.aspx?id=6932
Application Architecture Guide 2.0
My Blog
Twitter