Skip to main content

fileloft_store_s3/
error.rs

1use thiserror::Error;
2
3/// Errors from [`S3Store`](crate::S3Store) 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 S3StoreError {
10    #[error("S3 bucket name is empty")]
11    BucketEmpty,
12
13    #[error("failed to build S3 client: {0}")]
14    ClientInit(String),
15}