invoic_checker/error.rs
1//! Errors from the `invoic-checker` pipeline.
2
3use thiserror::Error;
4
5/// Errors that can occur during INVOIC validation.
6#[derive(Debug, Error)]
7pub enum CheckError {
8 /// No tariff entry found for the given GLN and billing period.
9 #[error("tariff not found for sender GLN '{mp_id}' on date '{date}'")]
10 TariffNotFound { mp_id: String, date: String },
11}