1use crate::error::BoxError;
4
5#[derive(thiserror::Error, Debug)]
7pub enum ApiError {
8 #[error("failed requesting `{0}`: {1}")]
10 FailedToRequestByHttp(&'static str, BoxError),
11
12 #[error("failed to read JSON in `{0}`: {1}")]
14 FailedToReadJson(&'static str, BoxError),
15
16 #[error("failed to read file: {0}")]
18 FailedToReadFileInFilesUpload(BoxError),
19
20 #[error("failed to read strem in `{0}`: {1}")]
22 FailedToReadStream(&'static str, BoxError),
23
24 #[error("failed creating multipart form data: {0}")]
26 FailedCreatingMulipartData(BoxError),
27}