Skip to content

[TM-254] Simplify custom lorentz errors

Konstantin Ivanov requested to merge martoon/tm254-custom-lorentz-errors into master

Description

See related ticket for the motivation of this change.

In two words, we change the way to declare custom errors from datatype, each describing a group of error scenarios, to type family instance per error scenario. This is intended in order to simplify both implementation and API of custom errors.

Related issue(s)

https://issues.serokell.io/issue/TM-254

Checklist for your Merge Request

Related changes (conditional)

  • Tests (see short guidelines)

    • If I added new functionality, I added tests covering it. Covered by ManagedLedger tests.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:

Stylistic guide (mandatory)

Edited by Konstantin Ivanov

Merge request reports