Show / Hide Table of Contents

Class MirrorException

Exception raised when a mirror request or simulated evm call has failed.

Inheritance
object
Exception
MirrorException
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
Exception.SerializeObjectState
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
public class MirrorException : Exception, ISerializable
Remarks

Thrown by MirrorRestClient extension methods when the mirror node REST API returns an HTTP error response. The StatusCode property carries the HTTP status and Details contains the structured error payload returned by the mirror node (if any).

Transient codes (safe to retry): TooManyRequests (429), ServiceUnavailable (503), GatewayTimeout (504). Mirror nodes enforce rate limits; back off and retry.

Permanent codes (do not retry): NotFound (404) — the entity does not exist (or has not yet propagated to the mirror); verify the EntityId. BadRequest (400) — the query was malformed; check filter parameters.

Constructors

| Edit this page View Source

MirrorException(string, MirrorError[], HttpStatusCode)

Public Constructor.

Declaration
public MirrorException(string message, MirrorError[] details, HttpStatusCode code)
Parameters
Type Name Description
string message

The message generated by the library describing the condition that raised the exception.

MirrorError[] details

The error details returned from the mirror node.

HttpStatusCode code

The HTTP status code returned.

Properties

| Edit this page View Source

Details

The error details returned by the mirror node.

Declaration
public MirrorError[] Details { get; }
Property Value
Type Description
MirrorError[]
| Edit this page View Source

StatusCode

The http status code returned from the mirror node request.

Declaration
public HttpStatusCode StatusCode { get; }
Property Value
Type Description
HttpStatusCode

Implements

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