sephynox / xrpl-rust

A 100% Rust library to interact with the XRPL. XRPL Grant Winner
https://crates.io/crates/xrpl-rust
ISC License
20 stars 8 forks source link

utilize thiserror and anyhow for models #54

Closed LimpidCrypto closed 1 year ago

LimpidCrypto commented 1 year ago

High Level Overview of Change

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.