ayrat555 / frankenstein

Telegram bot API client for Rust
Do What The F*ck You Want To Public License
268 stars 28 forks source link

Error handling #51

Closed EdJoPaTo closed 2 years ago

EdJoPaTo commented 2 years ago

thiserror implements std::error::Error. Having the std Error implemented is helpful for error handling as crates like anyhow or other errors like std::io::Error automatically work via Into.

also parameters was added to the ErrorResponse which could be helpful for the retry_after property.

ayrat555 commented 2 years ago

@EdJoPaTo thank you for your improvements.

A new version was released - https://crates.io/crates/frankenstein/0.11.0