use thiserror::Error;
use crate::ApiError;
#[derive(Debug, Error)]
pub enum CreatePostcardError {
#[error("Reqwest: {0}")]
Reqwest(
#[from]
#[source]
reqwest::Error,
),
#[error("Json: {0}")]
Serialize(
#[from]
#[source]
serde_json::Error,
),
#[error("Lob: {0}")]
Api(
#[from]
#[source]
ApiError,
),
#[error("Json: {0} - {1}")]
Json(#[source] serde_json::Error, String),
}