Is there a C# error exception for a value error? the equivalent of the python "value error" below?
except ValueError as e:
Sounds like you probably want ArgumentException, or ArgumentNullException, or ArgumentOutOfRangeException depending on the precise nature. (The latter exceptions are subtypes of the first.)