I'm developing a C# utility class that runs an external command on a Linux server via SSH (I'm using SharpSSH; I like it so far and I recommend it) and gives back some meaningful information based on the command's output.
Somewhere in the aforementioned output is an integer that should never be outside some range, but I'd like to prevent against that unlikely possibility. What exception is more proper to throw is the received number is actually outside the range? I'm thinking ArgumentOutOfRangeException
, but it's not really an argument. Autocomplete doesn't give me any good candidates. Any suggestions?