mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-07-01 02:21:45 +02:00
22 lines
480 B
Rust
22 lines
480 B
Rust
use thiserror::Error;
|
|
|
|
#[derive(Debug, Error)]
|
|
pub enum Error {
|
|
#[error(transparent)]
|
|
Send(#[from] crate::send::SendHttpRequestError),
|
|
|
|
#[error(transparent)]
|
|
Model(#[from] yaak_models::error::Error),
|
|
|
|
#[error(transparent)]
|
|
Plugin(#[from] yaak_plugins::error::Error),
|
|
|
|
#[error("I/O error: {0}")]
|
|
Io(#[from] std::io::Error),
|
|
|
|
#[error("JSON error: {0}")]
|
|
Json(#[from] serde_json::Error),
|
|
}
|
|
|
|
pub type Result<T> = std::result::Result<T, Error>;
|