C# equivalent of "value error" in Python

c#, error-handling, python

Solution

Sounds like you probably want `ArgumentException`, or `ArgumentNullException`, or `ArgumentOutOfRangeException` depending on the precise nature. (The latter exceptions are subtypes of the first.)

Problem

Is there a C# error exception for a value error? the equivalent of the python "value error" below? ``` except ValueError as e: ```

Original source