Unexpected failure? InvalidOperationException.

From stackoverflow.com : Taken from MSDN's page on InvalidOperationException: "InvalidOperationException is used in cases when the failure to invoke a method is caused by reasons other than invalid arguments." – STW Commented Apr 21, 2009 at 19:44 I often forget what the "right" exception is to throw when it's not an argument issue -- and linters are getting better at reminding me not to be lazy…