Show / Hide Table of Contents

Class BlockNodeException

Represents a failure reported by (or detected while communicating with) a Hiero Block Node.

Inheritance
object
Exception
BlockNodeException
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
[Experimental("HIERO001", UrlFormat = "https://github.com/bugbytesinc/Hiero/blob/main/docs/blocknode-client-plan.md")]
public sealed class BlockNodeException : Exception, ISerializable
Remarks

Thrown by the BlockNodeClient methods when a request fails or a block stream faults. For streaming methods, blocks that were already delivered to the destination channel before the fault are still valid — only the stream itself is broken.

Inspect Code to decide how to recover; each BlockNodeExceptionCode value documents whether the condition is transient (retry) or permanent (correct the request).

Constructors

| Edit this page View Source

BlockNodeException(string?, BlockNodeExceptionCode, Exception?)

Public Constructor.

Declaration
public BlockNodeException(string? message, BlockNodeExceptionCode code, Exception? innerException = null)
Parameters
Type Name Description
string message

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

BlockNodeExceptionCode 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 BlockNodeExceptionCode Code { get; }
Property Value
Type Description
BlockNodeExceptionCode

Implements

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