def _validateIterCommonParams(MaxObjectCount, OperationTimeout):
    """
    Validate common parameters for an iter... operation.

    MaxObjectCount must be a positive non-zero integer or None.

    OperationTimeout must be positive integer or zero

    Raises:

      ValueError: if these parameters are invalid
    """
    if MaxObjectCount is None or MaxObjectCount <= 0:
        raise ValueError(
            _format("MaxObjectCount must be > 0 but is {0}", MaxObjectCount))

    if OperationTimeout is not None and OperationTimeout < 0:
        raise ValueError(
            _format("OperationTimeout must be >= 0 but is {0}",
                    OperationTimeout))
Validate common parameters for an iter... operation.

    MaxObjectCount must be a positive non-zero integer or None.

    OperationTimeout must be positive integer or zero

    Raises:

      ValueError: if these parameters are invalid