wezterm_blob_leases/
error.rs1use crate::ContentId;
2use std::path::PathBuf;
3use thiserror::Error;
4
5#[derive(Error, Debug)]
6pub enum Error {
7 #[error("Lease Expired, data is no longer accessible")]
8 LeaseExpired,
9
10 #[error("Content with id {0} not found")]
11 ContentNotFound(ContentId),
12
13 #[error("Io error in BlobLease: {0}")]
14 Io(#[from] std::io::Error),
15
16 #[error("Storage has already been initialized")]
17 AlreadyInitializedStorage,
18
19 #[error("Storage has not been initialized")]
20 StorageNotInit,
21
22 #[error("Storage location {0} may be corrupt: {1}")]
23 StorageDirIoError(PathBuf, std::io::Error),
24}