30
20
Mar
C#: Value does not fall within the expected range
Categories Programming
To save anybody from a fruitless internet search, the default message for ArgumentException
is the phrase “Value does not fall within the expected range”. This error may be returned from various sources, but in my case it was an explicit throw:
if (someInvalidValue)
{
throw new ArgumentException();
}
So if this error is bubbling up, it’s an ArgumentException
.
Comments
No comments yet. Leave a comment.