<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Exception Logging with EntLib Made Simple</title>
	<atom:link href="http://elegantcode.com/2009/07/31/exception-logging-with-entlib-made-simple/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com/2009/07/31/exception-logging-with-entlib-made-simple/</link>
	<description></description>
	<lastBuildDate>Mon, 06 Sep 2010 17:48:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Daily Links for Saturday, August 1st, 2009</title>
		<link>http://elegantcode.com/2009/07/31/exception-logging-with-entlib-made-simple/comment-page-1/#comment-48047</link>
		<dc:creator>Daily Links for Saturday, August 1st, 2009</dc:creator>
		<pubDate>Sat, 01 Aug 2009 11:42:42 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/07/31/exception-logging-with-entlib-made-simple/#comment-48047</guid>
		<description>[...] Exception Logging with EntLib Made Simple &#124; Elegant Code [...]</description>
		<content:encoded><![CDATA[<p>[...] Exception Logging with EntLib Made Simple | Elegant Code [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dew Drop &#8211; July 31, 2009 &#124; Alvin Ashcraft's Morning Dew</title>
		<link>http://elegantcode.com/2009/07/31/exception-logging-with-entlib-made-simple/comment-page-1/#comment-48034</link>
		<dc:creator>Dew Drop &#8211; July 31, 2009 &#124; Alvin Ashcraft's Morning Dew</dc:creator>
		<pubDate>Fri, 31 Jul 2009 13:22:55 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/07/31/exception-logging-with-entlib-made-simple/#comment-48034</guid>
		<description>[...] Exception Logging with EntLib Made Simple (David Starr) [...]</description>
		<content:encoded><![CDATA[<p>[...] Exception Logging with EntLib Made Simple (David Starr) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://elegantcode.com/2009/07/31/exception-logging-with-entlib-made-simple/comment-page-1/#comment-48033</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Fri, 31 Jul 2009 12:39:09 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/07/31/exception-logging-with-entlib-made-simple/#comment-48033</guid>
		<description>It would be better if you were using the Enterprise Library Exception Handling block for your extension method.  Something like this:

try
{
}
catch(Exception ex)
{
   if(!ex.Handle(&quot;MyExceptionPolicyName&quot;))
      throw; //not handled or configured to throw
}

Then the extension method:

public static bool Handle(this Exception ex, string policyName)
{
    Exception newEx = null;

    bool rethrow = ExceptionPolicy.HandleException(ex, policyName, out newEx);

    if (rethrow &amp;&amp; newEx == null)
        return false;
    else if (rethrow &amp;&amp; newEx != null)
        throw newEx;
    return true;
}</description>
		<content:encoded><![CDATA[<p>It would be better if you were using the Enterprise Library Exception Handling block for your extension method.  Something like this:</p>
<p>try<br />
{<br />
}<br />
catch(Exception ex)<br />
{<br />
   if(!ex.Handle(&#8220;MyExceptionPolicyName&#8221;))<br />
      throw; //not handled or configured to throw<br />
}</p>
<p>Then the extension method:</p>
<p>public static bool Handle(this Exception ex, string policyName)<br />
{<br />
    Exception newEx = null;</p>
<p>    bool rethrow = ExceptionPolicy.HandleException(ex, policyName, out newEx);</p>
<p>    if (rethrow &amp;&amp; newEx == null)<br />
        return false;<br />
    else if (rethrow &amp;&amp; newEx != null)<br />
        throw newEx;<br />
    return true;<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
