Skip to content

Improve errors for yield curve query #190

@tkukuljan

Description

@tkukuljan

Currently in Ifrs17/Utils/Queries/3.2 (Current Yield Curve) the check for yield curve data by currency is done so:

if (!loadedYc.TryGetValue(key.ContractualCurrency, out var currentYcDict))
ApplicationMessage.Log(Error.YieldCurveNotFound, key.ContractualCurrency, args.Year.ToString(), args.Month.ToString());

foreach(var dn in dnByValAppContrCurrYcName[key])
currentYieldCurveByGoc[dn] = loadedYc[key.ContractualCurrency];

which gives an error at compile time.

Possible solution would be to create some fake data for that currency so that the computations run, and then the ActivityLog displays the correct error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    🆕 New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions