RpcErrorInfo class

Describes the cause of an error with a reason, domain, and metadata.

Inheritance

Constructors

RpcErrorInfo({required String reason, String domain = '', Map<String, String> metadata = const {}})
Creates an RpcErrorInfo with the given reason, domain, and metadata.

Properties

domain → String
Logical domain grouping (e.g. "billing.v1").
final
hashCode → int
The hash code for this object.
no setterinherited
metadata → Map<String, String>
Additional key-value metadata about the error.
final
reason → String
Machine-readable error reason (e.g. "QUOTA_EXCEEDED").
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
typeUrl → String
Protobuf type URL identifying the detail type.
no setteroverride

Methods

encode() → Uint8List
Encodes the detail payload (without the Any wrapper).
override
encodeAsAny() → Uint8List
Encodes as a protobuf google.protobuf.Any message.
inherited
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

Constants

type → const String
Protobuf type URL for ErrorInfo.