daml/ledger/ledger-api-errors/README.md
tudor-da 346bb48904
Extract Ledger API error definitions in //ledger/ledger-api-errors [DPP-1269] (#15439)
* Extract Ledger API error definitions in //ledger/error-definitions

changelog_begin
SERVICE_INTERNAL_ERROR error code is created in CommonErrors and replaces the usage of LEDGER_API_INTERNAL_ERROR in ledger-api-client (as a fix).
changelog_end

* Tests in //ledger/error do not depend on //ledger/ledger-api-errors

* Remove unused dependency from //ledger/error

changelog_begin
changelog_end

* Address Martino's comment
2022-11-07 17:24:43 +01:00

586 B

Ledger error definitions

Home to error definitions commonly reported via the Ledger API server. As opposed to definitions in //ledger/participant-state-kv-errors, these errors are generic wrt to the ledger backend used by the participant server.

Daml-LF dependencies

Multiple error definitions depend on Daml LF types whose Bazel targets pull in unrelated dependencies, such as the Daml engine.

TODO (https://github.com/digital-asset/daml/issues/15453): Extract Daml-LF interface types to separate package in order to decouple the error definitions from the Daml engine.