BatchResult class

What one delivery attempt concluded.

The distinction that matters is not success versus failure but retryable versus not: a 401 from a revoked key will answer 401 forever, while a connection refused may well not.

Constructors

BatchResult.delivered()
const
BatchResult.rejected(String error)
The server rejected the batch and will keep rejecting it — a 4xx.
const
BatchResult.retryable(String error, {Duration? retryAfter})
The server may yet accept this batch — a network failure, a timeout, or a 5xx.
const

Properties

delivered → bool
final
error → String?
final
hashCode → int
The hash code for this object.
no setterinherited
retryable → bool
final
retryAfter → Duration?
What Retry-After named, when the answer carried one and it pointed at the future. Null means nothing was said — not that zero was.
final
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