JobErrorAnswer enum

What the job does about an error it hands to JobObserver.onError.

Settled before the call and told with it, so an observer that reports in both JobObserver.onError and JobAnswerer.onUnanswered can leave an error to the hook that will hear it. Only answered promises an answer, and only cancellation and never promise there is none; later promises nothing.

See Where each error goes on the error rules page.

Inheritance
Available extensions

Values

answered → const JobErrorAnswer

The job asks for an answer to the error: JobAnswerer.onUnanswered of an observer that answers, or the zone.

Right after this call, or, for the failure of a body the job's cancellation covers, once the job has ended. A Job.ignoreFailure called before then takes that answer away. An overflow the body throws before its start has returned comes as later instead: if it cut the start short as well, the core ends the job with its failure ignored, and nobody answers for it.

cancellation → const JobErrorAnswer

The job never asks for an answer, because the error is a cancellation: a Cancelled, or a failure of a job that has accepted a cancellation that Job.isCancellationError names.

later → const JobErrorAnswer

The outcome that carries the error may still be read.

The answer may be asked for later or never, and this value promises neither.

never → const JobErrorAnswer

The job never asks for an answer, and the error is not a cancellation.

The failure of a job Job.ignoreFailure was called on, one this job carries for another that has been answered for already, or one inside a ParallelWaitError that the walk the job decided by did not meet. An ignored failure is never put to Job.isCancellationError, so this may carry an error the filter would have called a cancellation.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<JobErrorAnswer>
A constant List of the values in this enum, in order of their declaration.