<?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: ASP.NET MVC Tip &#8211; Return specific views for specific errors.</title>
	<atom:link href="http://www.lazycoder.com/weblog/2009/03/18/aspnet-mvc-tip-return-specific-views-for-specific-errors/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lazycoder.com/weblog/2009/03/18/aspnet-mvc-tip-return-specific-views-for-specific-errors/</link>
	<description></description>
	<lastBuildDate>Sun, 07 Mar 2010 12:39:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Scott</title>
		<link>http://www.lazycoder.com/weblog/2009/03/18/aspnet-mvc-tip-return-specific-views-for-specific-errors/comment-page-1/#comment-189349</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Mon, 23 Mar 2009 06:57:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazycoder.com/weblog/?p=1114#comment-189349</guid>
		<description>Paul,Ben - I thought about HandleError, maybe I should update the post. In most cases, I use very specific exceptions that really only apply to a single controller or action. But I can see the point about reusing the logic in multiple places.

What do the tests for actions with this attribute look like? Do you just call the action and catch the exception?</description>
		<content:encoded><![CDATA[<p>Paul,Ben &#8211; I thought about HandleError, maybe I should update the post. In most cases, I use very specific exceptions that really only apply to a single controller or action. But I can see the point about reusing the logic in multiple places.</p>
<p>What do the tests for actions with this attribute look like? Do you just call the action and catch the exception?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Scheirman</title>
		<link>http://www.lazycoder.com/weblog/2009/03/18/aspnet-mvc-tip-return-specific-views-for-specific-errors/comment-page-1/#comment-189303</link>
		<dc:creator>Ben Scheirman</dc:creator>
		<pubDate>Sat, 21 Mar 2009 22:12:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazycoder.com/weblog/?p=1114#comment-189303</guid>
		<description>+1 to what paul said.  This keeps your actions tighter and you can reuse this logic across multiple actions/controllers.</description>
		<content:encoded><![CDATA[<p>+1 to what paul said.  This keeps your actions tighter and you can reuse this logic across multiple actions/controllers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PaulBlamire</title>
		<link>http://www.lazycoder.com/weblog/2009/03/18/aspnet-mvc-tip-return-specific-views-for-specific-errors/comment-page-1/#comment-189285</link>
		<dc:creator>PaulBlamire</dc:creator>
		<pubDate>Sat, 21 Mar 2009 13:18:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazycoder.com/weblog/?p=1114#comment-189285</guid>
		<description>Hi,

Have you tried using the HandleError attribute for redirecting to a custom view on a particular type of error?

[HandleError(View=&quot;CannotRetrieveItem&quot;,ExceptionType=typeof(ServiceCannotBeReachedException))]

Kind regards,
Paul</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Have you tried using the HandleError attribute for redirecting to a custom view on a particular type of error?</p>
<p>[HandleError(View="CannotRetrieveItem",ExceptionType=typeof(ServiceCannotBeReachedException))]</p>
<p>Kind regards,<br />
Paul</p>
]]></content:encoded>
	</item>
</channel>
</rss>
