Skip to main content

dove_core/
error.rs

1use thiserror::Error;
2
3pub type Result<T> = std::result::Result<T, Error>;
4
5#[derive(Debug, Error)]
6pub enum Error {
7    #[error("not found")]
8    NotFound,
9    #[error("this share has expired or reached its download limit")]
10    Gone,
11    #[error("{0}")]
12    PinRequired(String),
13    #[error("{0}")]
14    Locked(String),
15    #[error("integrity check failed")]
16    Integrity,
17    #[error("{0}")]
18    Aws(String),
19    #[error("{0}")]
20    Network(String),
21    #[error("config: {0}")]
22    Config(String),
23    #[error("{0}")]
24    Other(String),
25}