Example #1
0
def ods_float_value(value):
    if value > constants.MAX_INTEGER:
        raise exceptions.IntegerAccuracyLossError("%s is too big" % value)
    return value
Example #2
0
def throw_exception(value):
    raise exceptions.IntegerAccuracyLossError("%s is too big" % value)