Files
friendolls-desktop/src-tauri/src/models/remote_error.rs

12 lines
250 B
Rust

use thiserror::Error;
#[derive(Error, Debug)]
pub enum RemoteError {
#[error("HTTP error: {0}")]
Http(#[from] reqwest::Error),
#[error("JSON parse error: {0}")]
Json(#[from] serde_json::Error),
#[error("{0}")]
Api(String),
}