ParameterExtractor

Trait ParameterExtractor 

Source
pub trait ParameterExtractor {
    // Required methods
    fn extract_parameters(&self, error: &DecrustError) -> ExtractedParameters;
    fn name(&self) -> &'static str;
    fn supported_categories(&self) -> &[ErrorCategory];
}
Expand description

Trait for extracting parameters from errors

Required Methods§

Source

fn extract_parameters(&self, error: &DecrustError) -> ExtractedParameters

Extracts parameters from an error

Source

fn name(&self) -> &'static str

Returns the name of this extractor

Source

fn supported_categories(&self) -> &[ErrorCategory]

Returns the error categories this extractor supports

Implementors§