This PR adds the thiserr_no_std and anyhow for modern error handling. It utilizes the crates for the models.
It also adds a macro _anyhow::Err! to turn the thiserror_no_std::Error into a anyhow::Error. The exceptions were moved from models/exceptions to models/transactions/exceptions and models/requests/exceptions.
The PR resolves a part of the issue #53
Future Tasks
We also need to utilize those crates for all other exceptions.
High Level Overview of Change
This PR adds the
thiserr_no_std
andanyhow
for modern error handling. It utilizes the crates for the models. It also adds a macro_anyhow::Err!
to turn thethiserror_no_std::Error
into aanyhow::Error
. The exceptions were moved frommodels/exceptions
tomodels/transactions/exceptions
andmodels/requests/exceptions
.The PR resolves a part of the issue #53
Future Tasks
We also need to utilize those crates for all other exceptions.