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!(
12            f,
13            "Invalid S3 path component '{}': {}",
14            self.component, self.reason
15        )
16    }
17}
18
19impl std::error::Error for InvalidS3PathComponent {}