daml/ledger/ledger-api-common
tudor-da 2fc7490df2
[Self-service error codes] Adapt error factories [DPP-656] (#11270)
* Moved ErrorCodesVersionSwitcher to //ledger/error

CHANGELOG_BEGIN
CHANGELOG_END

* Rename ErrorCodeLoggingContext to ContextualizedErrorLogger

* Refactored ErrorFactories
* All error factories use ContextualizedErrorLogger for being able to dispatch self-service error codes.
* The ContextualizedErrorLogger is passed down from the dispatching Ledger API services.
* ErrorFactoriesSpec asserts both legacy (V1) and self-service error codes (V2).

* Adapted ApiSubmissionService

* Addressed Marcin's review comments
2021-10-18 16:46:20 +02:00
..
src [Self-service error codes] Adapt error factories [DPP-656] (#11270) 2021-10-18 16:46:20 +02:00
BUILD.bazel [Self-service error codes] Adapt error factories [DPP-656] (#11270) 2021-10-18 16:46:20 +02:00