Skip to main content

metar_taf_parser/taf/
errors.rs

1//! Module `errors`.
2//!
3//! Contains types and parsing logic implemented for this crate.
4use thiserror::Error;
5
6#[derive(Debug, Error)]
7/// Enumerates the allowed values for TafError.
8pub enum TafError {
9    #[error("invalid TAF format")]
10    InvalidFormat,
11
12    #[error("unsupported group: {0}")]
13    UnsupportedGroup(String),
14}