ErrorSeverity class

The severity of an ErrorCode.

Implemented types

Constructors

ErrorSeverity(String name, int ordinal, String machineCode, String displayName)
Initialize a newly created severity with the given names.
const

Properties

displayName String
The name of the severity used when producing readable output.
final
hashCode int
The hash code for this object. [...]
read-only, override
machineCode String
The name of the severity used when producing machine output.
final
name String
The name of this error code.
final
ordinal int
The ordinal value of the error code.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

compareTo(ErrorSeverity other) int
Compares this object to another Comparable [...]
override
max(ErrorSeverity severity) ErrorSeverity
Return the severity constant that represents the greatest severity.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
override

Operators

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

Constants

ERROR → const ErrorSeverity
The severity representing an error.
const ErrorSeverity('ERROR', 3, "E", "error")
INFO → const ErrorSeverity
The severity representing an informational level analysis issue.
const ErrorSeverity('INFO', 1, "I", "info")
NONE → const ErrorSeverity
The severity representing a non-error. This is never used for any error code, but is useful for clients.
const ErrorSeverity('NONE', 0, " ", "none")
values → const List<ErrorSeverity>
const [NONE, INFO, WARNING, ERROR]
WARNING → const ErrorSeverity
The severity representing a warning. Warnings can become errors if the -Werror command line flag is specified.
const ErrorSeverity('WARNING', 2, "W", "warning")