Skip to main content

fileloft_store_azure/
error.rs

1use thiserror::Error;
2
3/// Errors from [`AzureStore`](crate::AzureStore) construction.
4///
5/// Runtime failures after the store is built surface as [`TusError`](fileloft_core::error::TusError).
6#[derive(Debug, Error)]
7pub enum AzureStoreError {
8    #[error("Azure Blob container name is empty")]
9    ContainerEmpty,
10
11    #[error("storage account name is missing (set it on the builder or AZURE_STORAGE_ACCOUNT)")]
12    AccountMissing,
13
14    #[error("failed to build Azure Blob Storage client: {0}")]
15    ClientInit(String),
16}