jmserver/src/ipfs/error.rs

11 lines
229 B
Rust
Raw Normal View History

2022-01-05 23:46:19 +01:00
use thiserror::Error;
use url::ParseError;
#[derive(Error, Debug)]
pub enum IPFSError {
#[error("Reqwest error: {0}")]
Reqwest(#[from] reqwest::Error),
#[error("URL parse error: {0}")]
2022-01-10 14:37:27 +01:00
Url(#[from] ParseError),
2022-01-05 23:46:19 +01:00
}