title: C# What exception should be thrown when number out of range
body: <p>I have a simple C# method that generates a number. If the system tries to generate a number out of the range that has been defined, I'd like to throw an exception but there are so many, I'm not sure what exception to throw?</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/system.systemexception.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/system.systemexception.aspx</a></p>
  
  <p>An example would be a method that returns the next number available, but should not be greater than 100.  If the system tries to generate a number (i.e. 101) then I want to throw an exception.</p>