ArgChecker error messages could be improved

There is at least one place where the errors thrown by the ArgChecker class could be improved to make diagnostics easier e.g. in InflationNodalCurve the curve name could be included:

    ArgChecker.isTrue(lastMonth.isBefore(valuationMonth), "Last fixing month for " + curveWithoutFixing.getName().getName() + " must be before valuation date");
    double nbMonth = valuationMonth.until(lastMonth, MONTHS);
    DoubleArray x = curveWithoutFixing.getXValues();
    ArgChecker.isTrue(nbMonth < x.get(0), "The first estimation month for " + curveWithoutFixing.getName().getName() + " should be after the last known index fixing: " + lastMonth);
1 Like