<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Error and Exception Handling</title><link>http://www.asp.net</link><pubDate>Wed, 03 Apr 2013 14:47:14 GMT</pubDate><generator>umbraco</generator><description>Comments for Error and Exception Handling</description><language>en</language><atom:link href="http://www.asp.net/rss/comments/37765" rel="self" type="application/rss+xml" /><item><title>Comment Posted by .netdeveloper</title><link>http://www.asp.net/web-api/overview/web-api-routing-and-actions/exception-handling</link><pubDate>Tue, 20 Mar 2012 06:08:41 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015162</guid><description><![CDATA[ <p>Gr8 Article Mike..</p><p></p><p>Thanks</p><p>Rajesh Kumar Rolen</p><p>www.DotNetAcademy.blogspot.com</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/.netdeveloper.jpg?forceidenticon=false&amp;dt=635050374600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by littleclive</title><link>http://www.asp.net/web-api/overview/web-api-routing-and-actions/exception-handling</link><pubDate>Tue, 03 Apr 2012 04:41:05 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015245</guid><description><![CDATA[ <p>I notice that HttpResponseException does not allow an inner exception if the HttpStatusCode is set which means if I throw an HttpResponseException, I cannot bundle additional info that might be useful when publishing the exception to the event log. </p><p></p><p>Response on the exception is readonly so cannot set that (and modifying exceptions after they&#39;ve been created is generally a bad idea).</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/littleclive.jpg?forceidenticon=false&amp;dt=635050374600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by myscreennamewastaken</title><link>http://www.asp.net/web-api/overview/web-api-routing-and-actions/exception-handling</link><pubDate>Tue, 19 Jun 2012 13:26:54 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015803</guid><description><![CDATA[ <p>Call me a nit-picker but </p><p></p><p>public class NotImplExceptionFilter : ExceptionFilterAttribute</p><p></p><p>should be </p><p></p><p>public class NotImplExceptionFilterAttribute : ExceptionFilterAttribute</p><p></p><p>since its an attribute.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/myscreennamewastaken.jpg?forceidenticon=false&amp;dt=635050374600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by eric barr</title><link>http://www.asp.net/web-api/overview/web-api-routing-and-actions/exception-handling</link><pubDate>Fri, 13 Jul 2012 11:34:26 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015970</guid><description><![CDATA[ <p>It would be useful to add a section about handling errors in other areas of the Asp.net web pipleline.   For example, catching and logging &quot;Multiple actions were found that match the request: ...&quot; </p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/eric%20barr.jpg?forceidenticon=false&amp;dt=635050374600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by bradirby</title><link>http://www.asp.net/web-api/overview/web-api-routing-and-actions/exception-handling</link><pubDate>Thu, 19 Jul 2012 16:30:21 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016013</guid><description><![CDATA[ <p>This is a great tip!  I can&#39;t figure out how to write a unit test for it, though, without creating a live controller that throws an exception.  Is there a way to inject a test controller into the route collection which has a method that throws an exception, then see if the proper HttpResponseMessage is returned?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/bradirby.jpg?forceidenticon=false&amp;dt=635050374600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Jennyr</title><link>http://www.asp.net/web-api/overview/web-api-routing-and-actions/exception-handling</link><pubDate>Tue, 21 Aug 2012 10:17:48 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016233</guid><description><![CDATA[ <p>An HttpError class does not exist in System.Web.Http.dll.</p><p>We are using WebApi RC, the version of System.Web.Http.dll is 4.0.20505.0</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/Jennyr.jpg?forceidenticon=false&amp;dt=635050374600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by MikeWasson</title><link>http://www.asp.net/web-api/overview/web-api-routing-and-actions/exception-handling</link><pubDate>Wed, 22 Aug 2012 14:11:35 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016254</guid><description><![CDATA[ <p>Jennyr: HttpError was added after RC. </p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/MikeWasson.jpg?forceidenticon=false&amp;dt=635050374600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by skmcfadden</title><link>http://www.asp.net/web-api/overview/web-api-routing-and-actions/exception-handling</link><pubDate>Tue, 18 Sep 2012 21:59:39 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016466</guid><description><![CDATA[ <p>Where does HttpSelfHostConfiguration.IncludeErrorDetailPolicy fit into the exception handling picture?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/skmcfadden.jpg?forceidenticon=false&amp;dt=635050374600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by rossisdead2</title><link>http://www.asp.net/web-api/overview/web-api-routing-and-actions/exception-handling</link><pubDate>Mon, 22 Oct 2012 14:43:02 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016663</guid><description><![CDATA[ <p>The json response doesn&#39;t look like that at all when returning a ModelState object. It returns an undeserializable mess. </p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/rossisdead2.jpg?forceidenticon=false&amp;dt=635050374600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by rajeshkalis</title><link>http://www.asp.net/web-api/overview/web-api-routing-and-actions/exception-handling</link><pubDate>Wed, 07 Nov 2012 23:56:27 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016761</guid><description><![CDATA[ <p>Everything is good, but it is better to give an example exception handle code for client application.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/rajeshkalis.jpg?forceidenticon=false&amp;dt=635050374600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by amit pachahara</title><link>http://www.asp.net/web-api/overview/web-api-routing-and-actions/exception-handling</link><pubDate>Tue, 19 Mar 2013 01:07:27 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018735</guid><description><![CDATA[ <p>Very useful post.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/amit%20pachahara.jpg?forceidenticon=false&amp;dt=635050374600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by tohid</title><link>http://www.asp.net/web-api/overview/web-api-routing-and-actions/exception-handling</link><pubDate>Wed, 03 Apr 2013 14:47:14 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018845</guid><description><![CDATA[ <p>Great Article.</p><p>Please correct the typo in this part: &quot;Exeption filters in this collection apply to any Web API controller action.&quot;</p><p>Exeption --&gt; Exception</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/tohid.jpg?forceidenticon=false&amp;dt=635050374600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>