Fixing up the old InvalidApiParameters exception
to use the new InvalidParameters exception