class Utils {

    public static long decimalStringToLong(String s) {
        try {
            return Long.parseLong(s, 10);
        } catch (NumberFormatException e) {
            throw new IllegalArgumentException(String.format("Invalid decimal number: %s", s), e);
        }
    }

}