InvalidParamException `when...`