added missing @throws InvalidArgumentException