﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Ayende Rahien commented on Rant: Who thought THIS was a good idea?!</title><description>Justin,
Users see that all the time, that is the error that is thrown in VS.
To find the real details, you have to dig deep, that isn't a nice thing to do to people 
</description><link>http://ayende.com/87041/rant-who-thought-this-was-a-good-idea#comment11</link><guid>http://ayende.com/87041/rant-who-thought-this-was-a-good-idea#comment11</guid><pubDate>Fri, 09 Sep 2011 08:44:18 GMT</pubDate></item><item><title>justin chase commented on Rant: Who thought THIS was a good idea?!</title><description>Ayende,
It seems like .ToString() will print out all of the aggregated exceptions still, so it should work with loggers fine (unless you have some type of custom formatter that does more than just ToString()'s the exception). It's only in the debugger that you'll see this issue. The message should say "One or more errors occurred." Which is sort of redundant considering the name of the Exception.</description><link>http://ayende.com/87041/rant-who-thought-this-was-a-good-idea#comment10</link><guid>http://ayende.com/87041/rant-who-thought-this-was-a-good-idea#comment10</guid><pubDate>Thu, 08 Sep 2011 19:57:50 GMT</pubDate></item><item><title>Ayende Rahien commented on Rant: Who thought THIS was a good idea?!</title><description>Justin,
I would state that if your class need special handling, separate from all other classes of the same type, your class is broken</description><link>http://ayende.com/87041/rant-who-thought-this-was-a-good-idea#comment9</link><guid>http://ayende.com/87041/rant-who-thought-this-was-a-good-idea#comment9</guid><pubDate>Thu, 08 Sep 2011 19:45:28 GMT</pubDate></item><item><title>justin chase commented on Rant: Who thought THIS was a good idea?!</title><description>Your error logger would have to special case AggregateExceptions, that is a pain in the ass that's true.</description><link>http://ayende.com/87041/rant-who-thought-this-was-a-good-idea#comment8</link><guid>http://ayende.com/87041/rant-who-thought-this-was-a-good-idea#comment8</guid><pubDate>Thu, 08 Sep 2011 18:34:21 GMT</pubDate></item><item><title>Ayende Rahien commented on Rant: Who thought THIS was a good idea?!</title><description>Justin,
That assumes that I actually have the debugger there. And that is is responding.
What about log messages, users errors, emails to the mailing list, all of which show that error.</description><link>http://ayende.com/87041/rant-who-thought-this-was-a-good-idea#comment7</link><guid>http://ayende.com/87041/rant-who-thought-this-was-a-good-idea#comment7</guid><pubDate>Thu, 08 Sep 2011 16:52:03 GMT</pubDate></item><item><title>justin chase commented on Rant: Who thought THIS was a good idea?!</title><description>Click the "View Detail" link and it will show you the exceptions it has aggregated.</description><link>http://ayende.com/87041/rant-who-thought-this-was-a-good-idea#comment6</link><guid>http://ayende.com/87041/rant-who-thought-this-was-a-good-idea#comment6</guid><pubDate>Thu, 08 Sep 2011 16:41:03 GMT</pubDate></item><item><title>Ayende Rahien commented on Rant: Who thought THIS was a good idea?!</title><description>Justin,
It _could_ show me the exceptions that it had internally.
In 99% of the cases, it only have a single exception, anyway</description><link>http://ayende.com/87041/rant-who-thought-this-was-a-good-idea#comment5</link><guid>http://ayende.com/87041/rant-who-thought-this-was-a-good-idea#comment5</guid><pubDate>Thu, 08 Sep 2011 16:27:40 GMT</pubDate></item><item><title>justin chase commented on Rant: Who thought THIS was a good idea?!</title><description>It's an aggregate exception, which couldn't have a useful message anyway. You have to go look into the exceptions that it has aggregated to get the useful messages. It's a property, just expand it.</description><link>http://ayende.com/87041/rant-who-thought-this-was-a-good-idea#comment4</link><guid>http://ayende.com/87041/rant-who-thought-this-was-a-good-idea#comment4</guid><pubDate>Thu, 08 Sep 2011 15:57:42 GMT</pubDate></item><item><title>tobi commented on Rant: Who thought THIS was a good idea?!</title><description>Well at least it allows you to programmatically determine what the exact cause was ;-)

Curiously this is not the case for most exceptions. Especially IOException gives you about nothing to which you can react programmatically. There are not error codes.</description><link>http://ayende.com/87041/rant-who-thought-this-was-a-good-idea#comment3</link><guid>http://ayende.com/87041/rant-who-thought-this-was-a-good-idea#comment3</guid><pubDate>Thu, 08 Sep 2011 13:54:30 GMT</pubDate></item><item><title>Bryan Porter commented on Rant: Who thought THIS was a good idea?!</title><description>Could be worse. The Secure Store Service API in SharePoint 2010 likes to throw exceptions that are declared internal.</description><link>http://ayende.com/87041/rant-who-thought-this-was-a-good-idea#comment2</link><guid>http://ayende.com/87041/rant-who-thought-this-was-a-good-idea#comment2</guid><pubDate>Thu, 08 Sep 2011 13:16:06 GMT</pubDate></item><item><title>Pablo Alarcón commented on Rant: Who thought THIS was a good idea?!</title><description>Looks like someone used the resource file key instead of the value ;)
</description><link>http://ayende.com/87041/rant-who-thought-this-was-a-good-idea#comment1</link><guid>http://ayende.com/87041/rant-who-thought-this-was-a-good-idea#comment1</guid><pubDate>Thu, 08 Sep 2011 09:26:39 GMT</pubDate></item></channel></rss>