In Java what is idomatically most similar to raising a Python ValueError?
<p>If I were writing a Python function which received an argument with the correct type, but a value out of bounds, then I might throw a ValueError or one of it's sub-classes.</p>

<p>For example, suppose I had a function which added up the prices on an invoice. If one of the prices had a negative value or one of the item-counts was not positive and non-zero I might raise VE.</p>

<p>My current project is in Java, but the situation is the same:</p>

<p>A pricing function accepts only numbers within a specific range - what's the most sensible kind of exception object to throw that tells another Java developer their input is out of that sensible range?</p>
