sephynox / xrpl-rust

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

Utilize thiserror and anyhow for Error handling #53

Open LimpidCrypto opened 1 year ago

LimpidCrypto commented 1 year ago

Utilize modern error handling:

thiserror: https://docs.rs/thiserror/latest/thiserror/ https://crates.io/crates/thiserror/1.0.24

anyhow: https://docs.rs/anyhow/latest/anyhow/ https://crates.io/crates/anyhow

This has to be implemented for existing errors and has to be done for all future errors

LimpidCrypto commented 1 year ago

We already have utilized anyhow and thiserror for the models. We still have to utilize them for core, utils and wallet.