Class MirrorGrpcException
Represents an unexpected termination or exception received from a mirror stream.
Implements
Inherited Members
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public sealed class MirrorGrpcException : Exception, ISerializable
Remarks
Thrown by SubscribeTopicAsync(SubscribeTopicParams, Action<IMirrorGrpcContext>?) when the
mirror node's gRPC stream terminates unexpectedly. Messages that were
already delivered to the ChannelWriter<TopicMessage> before
the fault are still valid — only the stream itself is broken.
Inspect Code to decide how to recover:
- Unavailable — the mirror
node is temporarily down. Transient — retry after a
delay, resuming from the last received
TopicMessage.SequenceNumber. - CommunicationError — a network-level gRPC failure. Transient — retry.
- TopicNotFound — the topic address does not exist. Permanent — verify the topic EntityId.
- InvalidTopicAddress — the address exists but is not a topic. Permanent.
Constructors
| Edit this page View SourceMirrorGrpcException(string?, MirrorGrpcExceptionCode, Exception?)
Public Constructor.
Declaration
public MirrorGrpcException(string? message, MirrorGrpcExceptionCode code, Exception? innerException)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message generated by the library describing the condition that raised the exception. |
| MirrorGrpcExceptionCode | code | The status code identifying the error condition. |
| Exception | innerException | The inner exception that caused this exception, if any. |
Properties
| Edit this page View SourceCode
The status code identifying the error condition.
Declaration
public MirrorGrpcExceptionCode Code { get; }
Property Value
| Type | Description |
|---|---|
| MirrorGrpcExceptionCode |