Table of Contents

Class HonuaGrpcException

Namespace
Honua.Sdk.Grpc
Assembly
Honua.Sdk.Grpc.dll

Exception thrown when a gRPC call to the Honua server fails.

public sealed class HonuaGrpcException : HonuaException, ISerializable
Inheritance
HonuaGrpcException
Implements
Inherited Members

Constructors

HonuaGrpcException()

Creates a new gRPC exception.

public HonuaGrpcException()

HonuaGrpcException(StatusCode, string, Exception?)

Creates a new gRPC exception.

public HonuaGrpcException(StatusCode statusCode, string message, Exception? innerException = null)

Parameters

statusCode StatusCode

The gRPC status code.

message string

The error detail message.

innerException Exception

The original exception, if any.

HonuaGrpcException(string)

Creates a new gRPC exception.

public HonuaGrpcException(string message)

Parameters

message string

The error detail message.

HonuaGrpcException(string, Exception)

Creates a new gRPC exception.

public HonuaGrpcException(string message, Exception innerException)

Parameters

message string

The error detail message.

innerException Exception

The original exception.

Properties

FailureReceipt

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

public override HonuaFailureReceipt? FailureReceipt { get; }

Property Value

HonuaFailureReceipt

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 override int? HttpStatus { get; }

Property Value

int?

Remarks

gRPC is not an HTTP transport, so no HTTP status is surfaced; use StatusCode.

ProblemDetails

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

public override HonuaProblemDetails? ProblemDetails { get; }

Property Value

HonuaProblemDetails

StatusCode

The gRPC status code.

public StatusCode StatusCode { get; }

Property Value

StatusCode