Changed to IllegalArgumentException. Thanks for the suggestion.