[TM-254] Simplify custom lorentz errors
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
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.
Edited by Konstantin Ivanov