Description
Problem
Currently, enum Error
is just a bunch of typed String
s which has the cons of:
- Being hard to use it in granular manner;
- Requiring allocations per each string which may never be used.
There also is a problem of not using the std::error::Error::source()
infra.
Solution
Replace this with a well-typed error using thiserror
for declarative definition.
PS: self-assigning the issue as I am already working on it.