1 2 3 4 5 6 7 8 9 10 11
use thiserror::Error; #[derive(Debug, Clone, Error)] #[error("iriq: parse error: {0}")] pub struct ParseError(pub String); impl ParseError { pub fn new(msg: impl Into<String>) -> Self { ParseError(msg.into()) } }