QueryErrorAction class final Advanced

A fetch failed for good: retries exhausted, or cancelled with neither silent nor revert — a reverting cancel restores the earlier state through QuerySetStateAction instead. Moves status to error, ends the fetch and flags existing data as invalidated. TanStack Query calls this action error.

Inheritance

Constructors

QueryErrorAction(Object error, StackTrace stackTrace)
Creates the action for the error that settled the fetch.
const

Properties

error → Object
What the fetch finally failed with.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stackTrace → StackTrace
Where it was thrown from.
final

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