1234567891011121314use thiserror::Error; #[derive(Debug, Error)]pub enum ParserError { #[error("io: {0}")] Io(#[from] std::io::Error), #[error("syntax: {0}")] Syntax(String), #[error("{0}")] Other(String),}