Internal Exceptions

21 April 2009 10:02

Can anyone think of a good reason to make an exception class internal?  I mean, surely the whole point of raising typed exceptions is so that people can process the exact exception that they're looking at in the debugger.  It's not like the debugger prints up "nearest public type".  You can always make the constructor internal if you're really afraid of marauding bands of developers intent on breaking your code.

And the offender that's annoyed me so much?  System.Management.Automation.ParameterBindingValidationException.  Thanks, powershell.

Technorati Tags:
Comments
No comments posted yet.
Something to add?

Talking sense? Talking rubbish? Something I'm missing? Let me know!

Fields denoted with a "*" are required.

 (will not be displayed)

 
Please add 7 and 4 and type the answer here:

Preview Your Comment