ConvexDecodeException class

A Convex call succeeded but its result could not be decoded.

Reported by ConvexQuery, ConvexMutation, ConvexAction (when their decode throws) and PaginatedQueryBuilder (when fromJson throws or an item is not a JSON object). It lets callers tell "the server rejected the request" (ConvexException) apart from "the server succeeded, the client could not read the result" — for a mutation, the write has been committed even though the request reports an error, so retrying it would apply it twice.

Implemented types

Constructors

ConvexDecodeException(Object error, StackTrace stackTrace, {Object? value})
Creates a decode exception wrapping the decoder's error.
const

Properties

error → Object
The error thrown by the decoder.
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 the decoder threw.
final
value → Object?
The raw value that failed to decode.
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