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.
no setteroverride
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.
no setterinherited

Methods

compareTo(ErrorSeverity other) int
Compares this object to another object.
override
max(ErrorSeverity severity) ErrorSeverity
Return the severity constant that represents the greatest severity.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
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.
INFO → const ErrorSeverity
The severity representing an informational level analysis issue.
NONE → const ErrorSeverity
The severity representing a non-error. This is never used for any error code, but is useful for clients.
values → const List<ErrorSeverity>
WARNING → const ErrorSeverity
The severity representing a warning. Warnings can become errors if the -Werror command line flag is specified.