blob: 95447f78185523dccd5e7898d3a2bbeb4c683ca7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
use thiserror::Error;
#[derive(Error, Debug)]
pub enum BucketTransferProtocolError {
#[error("network connection failed: {0}")]
NetworkError(#[source] std::io::Error),
#[error("authentication failed: {0}")]
AuthenticationError(String),
#[error("permission denied: {0}")]
PermissionDenied(String),
#[error("I/O error: {0}")]
IoError(#[source] std::io::Error),
#[error("timeout occurred")]
Timeout,
}
|