A2uiRpcError class

A function call across the wire that failed, in either direction.

code defaults to rpcCode's wire value, or may be a custom wire error code when an agent or renderer reports a domain-specific string.

Implemented types
Available extensions

Constructors

A2uiRpcError(String message, RpcErrorCode rpcCode, {String? code, String? functionCallId, String? surfaceId, Object? details, Object? cause})
A2uiRpcError.custom(String message, String code, {String? functionCallId, String? surfaceId, Object? details, Object? cause})
Creates an A2uiRpcError with an arbitrary wire error code.

Properties

cause → Object?
finalinherited
code → String
finalinherited
details → Object?
Further detail, such as the raw {code, message} an agent reported.
final
functionCallId → String?
The functionCallId of the failing call, when known.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
message → String
finalinherited
partialResults → List<ResponsePart>

Available on A2uiError, provided by the A2uiErrorPartialResults extension

The parts the failing ResponseReader.feed or ResponseReader.close made ready before it threw this error, or an empty list for an error a stream did not throw.
no setter
rpcCode → RpcErrorCode
Why the call failed.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
surfaceId → String?
The surface the failing payload targets, when the check knows it.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
withContext({String? surfaceId, String? functionCallId}) → A2uiRpcError
Returns this error with surfaceId and functionCallId populated when not already set.

Operators

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