objectstore_client/
error.rs1#[derive(Debug, thiserror::Error)]
3pub enum Error {
4 #[error(transparent)]
6 Reqwest(#[from] reqwest::Error),
7 #[error(transparent)]
9 Io(#[from] std::io::Error),
10 #[error(transparent)]
12 Utf8(#[from] std::string::FromUtf8Error),
13 #[error(transparent)]
15 Metadata(#[from] objectstore_types::Error),
16 #[error("invalid scope: {0}")]
18 InvalidScope(#[from] objectstore_types::scope::InvalidScopeError),
19 #[error(transparent)]
21 TokenError(#[from] jsonwebtoken::errors::Error),
22 #[error("{message}")]
24 InvalidUrl {
25 message: String,
27 },
28}
29
30pub type Result<T, E = Error> = std::result::Result<T, E>;