modified exception if invalid params

added code to indicate which parameter is missing if an invalid param is provided.