Aspects


vs


Home Page
About Us
Feedback

Argumentexception

An ArgumentException is a specific exception in the .NET framework thrown when one of the arguments provided to a method is not valid.

Invalidoperationexception

The exception that is thrown when a method call is invalid for the object's current state.



Others

Example

I think the argumentexception is more appropriate because the invalidoperationexception documentation says that the object itself on what the method is called has to be in an invalid state right

from question  

InvalidOperationException vs. ArgumentException

Back to Home
Data comes from Stack Exchange with CC-BY-SA-4.0