Trait style::error_reporting::ParseErrorReporter
source · 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§
sourcefn report_error(
&self,
url: &UrlExtraData,
location: SourceLocation,
error: ContextualParseError<'_>,
)
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.