swapped docs and Exception to type InvalidParamException