use crate::error::BoxError;
#[derive(thiserror::Error, Debug)]
pub enum ApiError {
#[error("failed requesting `{0}`: {1}")]
FailedToRequestByHttp(&'static str, BoxError),
#[error("failed to read JSON in `{0}`: {1}")]
FailedToReadJson(&'static str, BoxError),
#[error("failed to read file: {0}")]
FailedToReadFileInFilesUpload(BoxError),
#[error("failed to read strem in `{0}`: {1}")]
FailedToReadStream(&'static str, BoxError),
#[error("failed creating multipart form data: {0}")]
FailedCreatingMulipartData(BoxError),
}