Show / Hide Table of Contents

Class MirrorGrpcException

Represents an unexpected termination or exception received from a mirror stream.

Inheritance
object
Exception
MirrorGrpcException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.ReferenceEquals(object, object)
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 Source

MirrorGrpcException(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 Source

Code

The status code identifying the error condition.

Declaration
public MirrorGrpcExceptionCode Code { get; }
Property Value
Type Description
MirrorGrpcExceptionCode

Implements

ISerializable
  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph