Error code additions. Not convinced by this PR, I mean, wouldn't be better to refactor TypedError constructor to accept an Abstract instead of a closed enum, and make multiple enums possible relying on this abstract? It would allow anyone to extend the list from outside and keep pattern matching possible.
Error code additions. Not convinced by this PR, I mean, wouldn't be better to refactor TypedError constructor to accept an Abstract instead of a closed enum, and make multiple enums possible relying on this abstract? It would allow anyone to extend the list from outside and keep pattern matching possible.