<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>FAQ: Why do some sources recommend extending ApplicationException while FxCop does not? [Michael Fanning, David Kean]</title><link>http://blogs.msdn.com/b/codeanalysis/archive/2006/04/05/faq-why-do-some-sources-recommend-extending-applicationexception-while-fxcop-does-not-michael-fanning-david-kean.aspx</link><description>TypesShouldNotExtendCertainBaseTypes fires on types that derive from ApplicationException and DoNotRaiseReservedExceptionTypes on members that throw ApplicationException. Why? 
 There are several outdated documents floating around on the web (some orginally</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: FAQ: Why do some sources recommend extending ApplicationException while FxCop does not? [Michael Fanning, David Kean]</title><link>http://blogs.msdn.com/b/codeanalysis/archive/2006/04/05/faq-why-do-some-sources-recommend-extending-applicationexception-while-fxcop-does-not-michael-fanning-david-kean.aspx#624963</link><pubDate>Sat, 10 Jun 2006 09:00:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:624963</guid><dc:creator>David M. Kean</dc:creator><description>The ApplicationException documentation has now been fixed: &lt;a rel="nofollow" target="_new" href="http://msdn2.microsoft.com/en-US/library/system.applicationexception"&gt;http://msdn2.microsoft.com/en-US/library/system.applicationexception&lt;/a&gt;(VS.80).aspx.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=624963" width="1" height="1"&gt;</description></item><item><title>re: FAQ: Why do some sources recommend extending ApplicationException while FxCop does not? [Michael Fanning, David Kean]</title><link>http://blogs.msdn.com/b/codeanalysis/archive/2006/04/05/faq-why-do-some-sources-recommend-extending-applicationexception-while-fxcop-does-not-michael-fanning-david-kean.aspx#575150</link><pubDate>Wed, 12 Apr 2006 21:26:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:575150</guid><dc:creator>David M. Kean</dc:creator><description>Just had a look, and a customer has already filed it: &lt;br&gt;&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://lab.msdn.microsoft.com/ProductFeedback/viewfeedback.aspx?feedbackid=ffeda598-cf85-4076-8683-1d6b6607d5c3"&gt;http://lab.msdn.microsoft.com/ProductFeedback/viewfeedback.aspx?feedbackid=ffeda598-cf85-4076-8683-1d6b6607d5c3&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=575150" width="1" height="1"&gt;</description></item><item><title>re: FAQ: Why do some sources recommend extending ApplicationException while FxCop does not? [Michael Fanning, David Kean]</title><link>http://blogs.msdn.com/b/codeanalysis/archive/2006/04/05/faq-why-do-some-sources-recommend-extending-applicationexception-while-fxcop-does-not-michael-fanning-david-kean.aspx#575126</link><pubDate>Wed, 12 Apr 2006 21:04:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:575126</guid><dc:creator>David M. Kean</dc:creator><description>Peter,&lt;br&gt;&lt;br&gt;The Microsoft Design Guidelines (as linked above) are the correct docs. I will file a bug internally regarding the ApplicationException docs.&lt;br&gt;&lt;br&gt;Existing code both internally and externally derive from ApplicationException. As it is a breaking change to change the base of a class (especially an Exception), it can't be marked obsolete.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=575126" width="1" height="1"&gt;</description></item><item><title>re: FAQ: Why do some sources recommend extending ApplicationException while FxCop does not? [Michael Fanning, David Kean]</title><link>http://blogs.msdn.com/b/codeanalysis/archive/2006/04/05/faq-why-do-some-sources-recommend-extending-applicationexception-while-fxcop-does-not-michael-fanning-david-kean.aspx#575115</link><pubDate>Wed, 12 Apr 2006 20:53:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:575115</guid><dc:creator>Peter</dc:creator><description>The Product Feedback link is broken (gives me a generic error with this URL: &lt;a rel="nofollow" target="_new" href="http://lab.msdn.microsoft.com/productfeedback/Error.aspx?errtype=http&amp;amp;errno=500"&gt;http://lab.msdn.microsoft.com/productfeedback/Error.aspx?errtype=http&amp;amp;errno=500&lt;/a&gt;) so I'll enter it here instead.&lt;br&gt;&lt;br&gt;These new recommendations--&amp;quot;don't throw ApplicationException and don't derive from it&amp;quot;--coupled with the fact that ApplicationException is by definition not something the Framework will derive/throw, begs the question: What's the ApplicationException class to be used for now? And if the answer is &amp;quot;nothing,&amp;quot; why isn't it marked as obsolete, since the recommendation in Brad's entry came out nearly 18 months ahead of .NET 2.0?&lt;br&gt;&lt;br&gt;And when you say &amp;quot;several outdated documents floating around on the web,&amp;quot; these include the official Microsoft .NET Framework documentation:&lt;br&gt;&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://msdn2.microsoft.com/en-US/library/system.applicationexception"&gt;http://msdn2.microsoft.com/en-US/library/system.applicationexception&lt;/a&gt;(VS.80).aspx&lt;br&gt;&lt;br&gt;I can certainly understand the reasons for reversing your advice regarding ApplicationException, I just wonder why the FxCop and a couple other blogs are the only ones that say so, and not more high-profile sources like the docs.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=575115" width="1" height="1"&gt;</description></item><item><title>re: FAQ: Why do some sources recommend extending ApplicationException while FxCop does not? [Michael Fanning, David Kean]</title><link>http://blogs.msdn.com/b/codeanalysis/archive/2006/04/05/faq-why-do-some-sources-recommend-extending-applicationexception-while-fxcop-does-not-michael-fanning-david-kean.aspx#569868</link><pubDate>Thu, 06 Apr 2006 16:51:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:569868</guid><dc:creator>David M. Kean</dc:creator><description>Fixed and Fixed. ;)&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=569868" width="1" height="1"&gt;</description></item><item><title>re: FAQ: Why do some sources recommend extending ApplicationException while FxCop does not? [Michael Fanning, David Kean]</title><link>http://blogs.msdn.com/b/codeanalysis/archive/2006/04/05/faq-why-do-some-sources-recommend-extending-applicationexception-while-fxcop-does-not-michael-fanning-david-kean.aspx#569843</link><pubDate>Thu, 06 Apr 2006 16:13:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:569843</guid><dc:creator>mcgurk</dc:creator><description>Rock on! &amp;nbsp;Where can I get aholt of the bass class library? &amp;nbsp;I've got some killer riffs I want to implement!&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=569843" width="1" height="1"&gt;</description></item><item><title>re: FAQ: Why do some sources recommend extending ApplicationException while FxCop does not? [Michael Fanning, David Kean]</title><link>http://blogs.msdn.com/b/codeanalysis/archive/2006/04/05/faq-why-do-some-sources-recommend-extending-applicationexception-while-fxcop-does-not-michael-fanning-david-kean.aspx#569686</link><pubDate>Thu, 06 Apr 2006 10:32:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:569686</guid><dc:creator>JaredPar MSFT</dc:creator><description>Your link to &amp;quot;Catching and throwing Standard Exception Types&amp;quot; appears to be broken.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=569686" width="1" height="1"&gt;</description></item></channel></rss>