FetchFailure class

The outcome of a failed fetch attempt.

Annotations

Constructors

FetchFailure({required Uri uri, required Object? httpClientException, required int attempt, required DateTime timestamp, int? httpStatusCode})
Creates a failure description.
const

Properties

attempt → int
Attempt number, starting at 1 for the first failure.
final
hashCode → int
The hash code for this object.
no setterinherited
httpClientException → Object?
The exception thrown by the HTTP client, if any.
final
httpStatusCode → int?
The HTTP status code of the failed response, when available.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timestamp → DateTime
When the failure occurred.
final
uri → Uri
The requested URL.
final

Methods

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