Use IllegalArgumentException, not InvalidArgumentException.