<?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>The Agileer - All Comments</title><link>http://blogs.msdn.com/b/agileer/</link><description>Doug Seelinger&amp;#39;s blog</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: The CORRECT Way to Code a Custom Exception Class</title><link>http://blogs.msdn.com/b/agileer/archive/2013/05/17/the-right-way-to-write-a-custom-exception-class.aspx#10420057</link><pubDate>Mon, 20 May 2013 14:37:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10420057</guid><dc:creator>Doug Seelinger</dc:creator><description>&lt;p&gt;@Daniel, Good point - no need for exception &amp;quot;properties&amp;quot; to be mutable in my opinion either.&lt;/p&gt;
&lt;p&gt;@Matt, I hear you. &amp;nbsp;Some of the tests are a bit overkill in my opinion, too, but I do care about whether or not the serialization is working correctly. &amp;nbsp;That&amp;#39;s what I see missing in most custom exception examples. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Should writing custom exceptions be easier? &amp;nbsp;Yeah, I think so, but this is where we are today.&amp;nbsp; If you have another opinion about a better way to get around all the boilerplate, I&amp;#39;d love to hear it!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10420057" width="1" height="1"&gt;</description></item><item><title>re: The CORRECT Way to Code a Custom Exception Class</title><link>http://blogs.msdn.com/b/agileer/archive/2013/05/17/the-right-way-to-write-a-custom-exception-class.aspx#10420047</link><pubDate>Mon, 20 May 2013 13:54:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10420047</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;This is all correct and good and all. But I can&amp;#39;t help feeling, this is all worthless boilerplate code that I don&amp;#39;t **want** to have to write or care about.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10420047" width="1" height="1"&gt;</description></item><item><title>re: The CORRECT Way to Code a Custom Exception Class</title><link>http://blogs.msdn.com/b/agileer/archive/2013/05/17/the-right-way-to-write-a-custom-exception-class.aspx#10420014</link><pubDate>Mon, 20 May 2013 09:05:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10420014</guid><dc:creator>Daniel Bradley</dc:creator><description>&lt;p&gt;Nice pointers on the serialization aspect. &lt;/p&gt;
&lt;p&gt;The only thing I&amp;#39;d add to your pattern would be to aim to make the custom properties immutable where possible and set the value only via the constructor.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10420014" width="1" height="1"&gt;</description></item><item><title>re: The CORRECT Way to Code a Custom Exception Class</title><link>http://blogs.msdn.com/b/agileer/archive/2013/05/17/the-right-way-to-write-a-custom-exception-class.aspx#10419929</link><pubDate>Sun, 19 May 2013 12:49:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10419929</guid><dc:creator>Doug Seelinger</dc:creator><description>&lt;p&gt;@Alex, you&amp;#39;re right, I am pretty sloppy on the constructor tests. Over the years, I&amp;#39;ve come to believe that testing base class functionality yields minimal utility, like testing automatic properties, for example. &amp;nbsp;If I&amp;#39;m overriding any of that base class functionality, however, I&amp;#39;d definitely provide more rigorous tests. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, there is an argument to be made that merely deriving from a base class obligates you to test at least the major parts of the base class to confirm that&amp;nbsp;you haven&amp;#39;t&amp;nbsp;(or&amp;nbsp;won&amp;#39;t in the future) break base class functionality&amp;nbsp;(in this case Message and InnerException as you state), so I&amp;#39;ll update the post to cover those. &amp;nbsp;Thanks for the remote pair-programming help!&lt;/p&gt;
&lt;p&gt;There is also a ResourceReferenceProperty, so we should probably go ahead and add that into the mix for the constructors to test.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10419929" width="1" height="1"&gt;</description></item><item><title>re: The CORRECT Way to Code a Custom Exception Class</title><link>http://blogs.msdn.com/b/agileer/archive/2013/05/17/the-right-way-to-write-a-custom-exception-class.aspx#10419920</link><pubDate>Sun, 19 May 2013 08:18:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10419920</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;Your constructor tests are pretty bad though. Assert.IsNotNull will always return true, unless the constructor throws an exception. But you&amp;#39;re not testing the message or inner exception are as expected.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10419920" width="1" height="1"&gt;</description></item><item><title>re: The RIGHT Way to Write a Custom Exception Class</title><link>http://blogs.msdn.com/b/agileer/archive/2013/05/17/the-right-way-to-write-a-custom-exception-class.aspx#10419818</link><pubDate>Sat, 18 May 2013 09:04:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10419818</guid><dc:creator>D. Chatterjee</dc:creator><description>&lt;p&gt;Sure to help enough&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10419818" width="1" height="1"&gt;</description></item><item><title>re: How To Enable ActiveX Controls on Windows Server 2008</title><link>http://blogs.msdn.com/b/agileer/archive/2008/12/05/how-to-enable-activex-controls-on-windows-server-2008.aspx#10395634</link><pubDate>Wed, 20 Feb 2013 17:37:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10395634</guid><dc:creator>chris</dc:creator><description>&lt;p&gt;...very good, thank you!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10395634" width="1" height="1"&gt;</description></item><item><title>re: How To Enable ActiveX Controls on Windows Server 2008</title><link>http://blogs.msdn.com/b/agileer/archive/2008/12/05/how-to-enable-activex-controls-on-windows-server-2008.aspx#10393408</link><pubDate>Wed, 13 Feb 2013 15:40:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10393408</guid><dc:creator>roy s.</dc:creator><description>&lt;p&gt;You are my hero!!! BIG THANKS!!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10393408" width="1" height="1"&gt;</description></item><item><title>re: Task Scheduler – A Specified Logon Session Does Not Exist</title><link>http://blogs.msdn.com/b/agileer/archive/2010/08/31/task-scheduler-a-specified-logon-session-does-not-exist.aspx#10391258</link><pubDate>Tue, 05 Feb 2013 16:19:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10391258</guid><dc:creator>Roja.Potti</dc:creator><description>&lt;p&gt;Just what I am looking for. Thanks.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10391258" width="1" height="1"&gt;</description></item><item><title>re: Task Scheduler – A Specified Logon Session Does Not Exist</title><link>http://blogs.msdn.com/b/agileer/archive/2010/08/31/task-scheduler-a-specified-logon-session-does-not-exist.aspx#10382364</link><pubDate>Fri, 04 Jan 2013 12:21:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10382364</guid><dc:creator>Karl</dc:creator><description>&lt;p&gt;This has bitten me twice as well and this blog posting has bailed me out each time.&lt;/p&gt;
&lt;p&gt;Thanks, Doug!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10382364" width="1" height="1"&gt;</description></item></channel></rss>