IllegalArgumentException
The standard exception for "this argument isn't allowed". A method throws it when it is given a value it can't accept, such as a bad quantity, a negative price or an unknown drink.
The standard exception for "this argument isn't allowed". A method throws it when it is given a value it can't accept, such as a bad quantity, a negative price or an unknown drink.