OdeToCode IC Logo

Euphemized Exceptions for .NET 4.0

Wednesday, April 1, 2009

Microsoft has discovered, after several well-funded studies, that the names they use for exceptions in the .NET framework create pathological levels of anxiety and stress in programmers. Thus, for .NET 4.0 they decided to create a “kinder and gentler” version of .NET by renaming exceptions in the framework class library.

The changes I know about so far:

Unfortunately,  we will need to update and recompile our code for .NET 4.0, but imagine the healthier lifestyle that will result from friendly error messages.

Kevin Dente Wednesday, April 1, 2009
I've also heard about
ThreadAbortException -> ThreadHasARightToLifeException

XmlException -> DslException

NotSupportedException -> TryToBeSupportiveException

WebException -> CloudException
Bembeng Arifin Wednesday, April 1, 2009
It seems that they're considering:
System.Exception -> System.MotherOfAllException
TweeZz Wednesday, April 1, 2009
A few weeks ago I proposed
System.NotImplementedexception -> System.DudeSomeoneForgotToWriteMeSomeCode

Bogdan Brinzarea Wednesday, April 1, 2009
Happy April Fools' Day!!!
Dan Kahler Wednesday, April 1, 2009
I must have misread the beta docs - I thought AbandonedMutexException was being renamed as LatchKeyChildException, and InvalidOperationException was now TooGreatARiskOfMalpracticeLawsuitBuMaybeOverseasException. Hmm...
Mike Strother Wednesday, April 1, 2009
I just threw an AmusedChuckleException.
Stan Wednesday, April 1, 2009
Dude, you crack me up.
PHenry Wednesday, April 1, 2009
This is too cool! :> I also have another April Fool's joke which I think your reader's will get a kick out of. :>

Ben R. Wednesday, April 1, 2009
I tell you .NET has a long way to go to match the potential for absurdity found in Java exceptions:
Haacked Wednesday, April 1, 2009
Instant Classic! Nicely done Scott!

My minor contribution:

OutOfMemoryException => JustAbsentMindedException
Atif Aziz Wednesday, April 1, 2009
System.Win32Exception becomes System.MotherShipException
Comments are closed.