def isNegativeThrow(n):
    """ensure type of n is of IntType,
    raise an exception if less than zero"""
    if n < 0:
        raise ValueError(
            'invalid value of argument n with value ({N}, value must be greater than or equall to 0)'
            .format(N=n))
