Table of Contents

Class HonuaException

Namespace
Honua.Sdk.Abstractions
Assembly
Honua.Sdk.Abstractions.dll

Base type for every exception thrown by an official Honua.Sdk.* client. Callers can write a single catch (HonuaException) to handle any SDK failure uniformly without having to enumerate per-protocol exception types (HonuaGrpcException, HonuaAdminApiException, HonuaStacException, etc., all derive from this class).

public abstract class HonuaException : Exception, ISerializable
Inheritance
HonuaException
Implements
Derived
Inherited Members

Constructors

HonuaException()

Creates a new HonuaException with no message.

protected HonuaException()

HonuaException(string?)

Creates a new HonuaException with the specified message.

protected HonuaException(string? message)

Parameters

message string

Human-readable description of the failure.

HonuaException(string?, Exception?)

Creates a new HonuaException with the specified message and inner exception.

protected HonuaException(string? message, Exception? innerException)

Parameters

message string

Human-readable description of the failure.

innerException Exception

The underlying transport, parsing, or domain error.

Properties

CorrelationId

Server correlation/request identity.

public string? CorrelationId { get; }

Property Value

string

FailureKind

Normalized machine failure kind available without protocol-specific downcasting.

public HonuaFailureKind FailureKind { get; }

Property Value

HonuaFailureKind

FailureReceipt

The normalized machine terminal receipt, when the failure came from a remote protocol.

public virtual HonuaFailureReceipt? FailureReceipt { get; }

Property Value

HonuaFailureReceipt

FieldErrors

Field- or item-addressable validation failures.

public IReadOnlyList<HonuaFieldFailure> FieldErrors { get; }

Property Value

IReadOnlyList<HonuaFieldFailure>

HttpStatus

The HTTP status code associated with the failure, normalized to an int, or null for non-HTTP transports (e.g. gRPC) or failures with no status. Lets callers branch on status uniformly without downcasting to a per-protocol exception type.

public virtual int? HttpStatus { get; }

Property Value

int?

MachineCode

Stable server machine code, when known.

public string? MachineCode { get; }

Property Value

string

ProblemDetails

The RFC 7807 problem document the server returned, or null; protocol-specific detail lives on derived types.

public virtual HonuaProblemDetails? ProblemDetails { get; }

Property Value

HonuaProblemDetails

ProtocolMetadata

Safe protocol response headers and trailers.

public HonuaProtocolMetadata ProtocolMetadata { get; }

Property Value

HonuaProtocolMetadata

RetryAfter

Known retry delay.

public TimeSpan? RetryAfter { get; }

Property Value

TimeSpan?

Retryable

Whether the server or protocol declares the terminal failure retryable.

public bool Retryable { get; }

Property Value

bool