world_shipping/errors.rs
1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum InputValidationError {
5 #[error("Invalid country code: {0}")]
6 InvalidCountryCode(String),
7 #[error("Invalid region code: {0}")]
8 InvalidRegionCode(String),
9 #[error("Unexpected region code: {0} - Country has no regions.")]
10 UnexpectedRegionCode(String),
11}