1 2 3 4 5 6 7 8 9 10
use thiserror::Error; /// Error whilst extracting public API #[derive(Error, Debug)] pub enum ExtractionError { #[error(transparent)] Io(#[from] std::io::Error), #[error("{0}")] Malformed(String), }