return create(DefaultDebtRemediationFunction.Type.CONSTANT_ISSUE, null, offset);
}
private DebtRemediationFunction create(DefaultDebtRemediationFunction.Type type, @Nullable String coefficient, @Nullable String offset) {
try {
return new DefaultDebtRemediationFunction(type, coefficient, offset);
} catch (Exception e) {
throw MessageException.of(String.format("The rule '%s:%s' is invalid : %s ", this.repoKey, this.key, e.getMessage()));
}
}