ErrorType class

The type of an ErrorCode.

Constructors

ErrorType(String name, int ordinal, ErrorSeverity severity)
Initialize a newly created error type to have the given name and severity.
const

Properties

displayName → String
read-only
hashCode → int
The hash code for this object. [...]
read-only
name → String
The name of this error type.
final
ordinal → int
The ordinal value of the error type.
final
severity ErrorSeverity
The severity of this type of error.
final
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

compareTo(ErrorType other) → int
Compares this object to another Comparable [...]
toString() → String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Constants

CHECKED_MODE_COMPILE_TIME_ERROR → const ErrorType
Checked mode compile-time errors are errors that preclude execution in checked mode.
const ErrorType('CHECKED_MODE_COMPILE_TIME_ERROR', 3, ErrorSeverity.ERROR)
COMPILE_TIME_ERROR → const ErrorType
Compile-time errors are errors that preclude execution. A compile time error must be reported by a Dart compiler before the erroneous code is executed.
const ErrorType('COMPILE_TIME_ERROR', 2, ErrorSeverity.ERROR)
HINT → const ErrorType
Extra analysis run over the code to follow best practices, which are not in the Dart Language Specification.
const ErrorType('HINT', 1, ErrorSeverity.INFO)
LINT → const ErrorType
Lint warnings describe style and best practice recommendations that can be used to formalize a project's style guidelines.
const ErrorType('LINT', 7, ErrorSeverity.INFO)
STATIC_TYPE_WARNING → const ErrorType
Many, but not all, static warnings relate to types, in which case they are known as static type warnings.
const ErrorType('STATIC_TYPE_WARNING', 5, ErrorSeverity.WARNING)
STATIC_WARNING → const ErrorType
Static warnings are those warnings reported by the static checker. They have no effect on execution. Static warnings must be provided by Dart compilers used during development.
const ErrorType('STATIC_WARNING', 4, ErrorSeverity.WARNING)
SYNTACTIC_ERROR → const ErrorType
Syntactic errors are errors produced as a result of input that does not conform to the grammar.
const ErrorType('SYNTACTIC_ERROR', 6, ErrorSeverity.ERROR)
TODO → const ErrorType
Task (todo) comments in user code.
const ErrorType('TODO', 0, ErrorSeverity.INFO)
values → const List<ErrorType>
const [TODO, HINT, COMPILE_TIME_ERROR, CHECKED_MODE_COMPILE_TIME_ERROR, STATIC_WARNING, STATIC_TYPE_WARNING, SYNTACTIC_ERROR, LINT]