Exception Inconsistencies

While I'm preparing for my exceptions talk next Saturday, I stumbled across this odd fact, which I noticed when I was reading the docs for this Code Analysis error: The arguments between ArgumentException and ArgumentNullException are reversed. That is, in ArgumentException, the offending argument name goes as the second parameter, but in ArgumentNullException, it's the first one.

It's a small inconsistency, but man, that's quite bizarre!

* Posted at 10.03.2008 01:09:50 PM CST | Link *

Blog History