pub trait ParseErrorReporter {
    // Required method
    fn report_error(
        &self,
        url: &UrlExtraData,
        location: SourceLocation,
        error: ContextualParseError<'_>
    );
}
Expand description

A generic trait for an error reporter.

Required Methods§

source

fn report_error( &self, url: &UrlExtraData, location: SourceLocation, error: ContextualParseError<'_> )

Called when the style engine detects an error.

Returns the current input being parsed, the source location it was reported from, and a message.

Implementors§