ErrorCode class

An error code associated with an AnalysisError.

Generally, messages should follow the Guide for Writing Diagnostics.

Implementers

Constructors

ErrorCode(String name, [ String message, [ String correction, bool hasPublishedDocs = false ])
Initialize a newly created error code to have the given name. The message associated with the error will be created from the given message template. The correction associated with the error will be created from the given correction template.
const
ErrorCode.temporary(String name, { String message, { String correction, bool isUnresolvedIdentifier: false bool hasPublishedDocs: false })
Initialize a newly created error code to have the given name. The message associated with the error will be created from the given message template. The correction associated with the error will be created from the given correction template.
const

Properties

correction → String
The template used to create the correction to be displayed for this error, or null if there is no correction information for this error. The correction should indicate how the user can fix the error.
final
errorSeverity ErrorSeverity
The severity of the error.
read-only
hasPublishedDocs → bool
Return true if diagnostics with this code have documentation for them that has been published.
final
isUnresolvedIdentifier → bool
Whether this error is caused by an unresolved identifier.
final
message → String
The template used to create the message to be displayed for this error. The message should indicate what is wrong and why it is wrong.
final
name → String
The name of the error code.
final
type ErrorType
The type of the error.
read-only
uniqueName → String
The unique name of this error code.
read-only
url → String
Return a URL that can be used to access documentation for diagnostics with this code, or null if there is no published documentation.
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

Methods

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