Trait style::error_reporting::ParseErrorReporter
[−]
[src]
pub trait ParseErrorReporter { fn report_error(
&self,
url: &UrlExtraData,
location: SourceLocation,
error: ContextualParseError
); }
A generic trait for an error reporter.
Required Methods
fn report_error(
&self,
url: &UrlExtraData,
location: SourceLocation,
error: ContextualParseError
)
&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
impl ParseErrorReporter for RustLogReporter
impl ParseErrorReporter for NullReporter