ErrorProcessor class

Process errors by filtering or changing associated ErrorSeverity.

Constructors

ErrorProcessor(String code, [ErrorSeverity? severity])
Create an error processor that assigns errors with this code the given severity.
ErrorProcessor.ignore(String code)
Create an error processor that ignores the given error by code.
factory

Properties

code String
The code name of the associated error.
final
description String
The string that unique describes the processor.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
severity ErrorSeverity?
The desired severity of the processed error.
final

Methods

appliesTo(AnalysisError error) bool
Check if this processor applies to the given error.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getProcessor(AnalysisOptions? analysisOptions, AnalysisError error) ErrorProcessor?
Return an error processor associated in the analysisOptions for the given error, or null if none is found.