fileloft_store_gcs/error.rs
1use thiserror::Error;
2
3/// Errors from [`GcsStore`](crate::GcsStore) construction.
4///
5/// These represent configuration and SDK initialization failures that happen
6/// at startup — before any tus request is processed. Once the store is built,
7/// all runtime errors go through [`TusError`](fileloft_core::error::TusError).
8#[derive(Debug, Error)]
9pub enum GcsStoreError {
10 #[error("GCS bucket name is empty")]
11 BucketEmpty,
12
13 #[error("failed to build GCS client: {0}")]
14 ClientInit(String),
15}