This question may seem a little silly, but here it goes.
I have two functions that can be called at any time. The first function takes a snapshot, and the second analyzes the data taken from this snapshot. Of course, if a user tries to parse a snapshot before taking it, my application should throw an exception. I know ArgumentOutOfRangeExceptionwhich is usually called when ...... there is an invalid argument, but actually it is not. Is there a built-in exception for such cases, or will I have to use ArgumentOutOfRangeException?
thanks
source
share