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.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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 non-existent 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.