presto-spi/src/main/java/io/prestosql/spi/type/Decimals.java/Decimals/checkOverflow
class Decimals:    public static void checkOverflow(BigInteger value)
    {
        if (overflows(value)) {
            throw new PrestoException(NUMERIC_VALUE_OUT_OF_RANGE, format("Value is out of range: %s", value.toString()));
        }
    }