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
messagestringHuman-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
messagestringHuman-readable description of the failure.
innerExceptionExceptionThe underlying transport, parsing, or domain error.
Properties
CorrelationId
Server correlation/request identity.
public string? CorrelationId { get; }
Property Value
FailureKind
Normalized machine failure kind available without protocol-specific downcasting.
public HonuaFailureKind FailureKind { get; }
Property Value
FailureReceipt
The normalized machine terminal receipt, when the failure came from a remote protocol.
public virtual HonuaFailureReceipt? FailureReceipt { get; }
Property Value
FieldErrors
Field- or item-addressable validation failures.
public IReadOnlyList<HonuaFieldFailure> FieldErrors { get; }
Property Value
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
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
ProtocolMetadata
Safe protocol response headers and trailers.
public HonuaProtocolMetadata ProtocolMetadata { get; }
Property Value
RetryAfter
Known retry delay.
public TimeSpan? RetryAfter { get; }
Property Value
Retryable
Whether the server or protocol declares the terminal failure retryable.
public bool Retryable { get; }