s3_path/
error.rs

1use std::fmt::Formatter;
2
3#[derive(Debug)]
4pub struct InvalidS3PathComponent {
5    pub component: String,
6    pub reason: String,
7}
8
9impl std::fmt::Display for InvalidS3PathComponent {
10    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
11        write!(f, "Invalid S3 path component '{}': {}", self.component, self.reason)
12    }
13}
14
15impl std::error::Error for InvalidS3PathComponent {}