Updated parameterrequiredexception to return the parameter that was required