What types of exceptions should be thrown for invalid or unexpected parameters in .NET? When would I choose one instead of another?
Which excep
There is a standard ArgumentException that you could use, or you could subclass and make your own. There are several specific ArgumentException classes:
http://msdn.microsoft.com/en-us/library/system.argumentexception(VS.71).aspx
Whichever one works best.