Table of Contents

Class HonuaAdminApiException

Namespace
Honua.Sdk.Admin.Exceptions
Assembly
Honua.Sdk.Admin.dll

Exception thrown when the Honua Admin API returns an error HTTP status code.

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

Constructors

HonuaAdminApiException()

Initializes a new instance of the HonuaAdminApiException class.

public HonuaAdminApiException()

HonuaAdminApiException(HttpStatusCode, string, string?)

Initializes a new instance of the HonuaAdminApiException class.

public HonuaAdminApiException(HttpStatusCode statusCode, string message, string? responseBody = null)

Parameters

statusCode HttpStatusCode

The HTTP status code returned by the server.

message string

A human-readable error message.

responseBody string

The raw response body, if available.

HonuaAdminApiException(HttpStatusCode, string, string?, Exception)

Initializes a new instance of the HonuaAdminApiException class with an inner exception.

public HonuaAdminApiException(HttpStatusCode statusCode, string message, string? responseBody, Exception innerException)

Parameters

statusCode HttpStatusCode

The HTTP status code returned by the server.

message string

A human-readable error message.

responseBody string

The raw response body, if available.

innerException Exception

The inner exception that caused this exception.

HonuaAdminApiException(string)

Initializes a new instance of the HonuaAdminApiException class.

public HonuaAdminApiException(string message)

Parameters

message string

A human-readable error message.

HonuaAdminApiException(string, Exception)

Initializes a new instance of the HonuaAdminApiException class with an inner exception.

public HonuaAdminApiException(string message, Exception innerException)

Parameters

message string

A human-readable error message.

innerException Exception

The inner exception that caused this exception.

Properties

ConstructAccounting

Pre-apply construct accounting from a migration-batch HTTP 422 refusal, when the response carried it. Null for every other admin error.

public MigrationConstructAccountingReport? ConstructAccounting { get; }

Property Value

MigrationConstructAccountingReport

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?

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

ResponseBody

The raw response body, if available.

public string? ResponseBody { get; }

Property Value

string

StatusCode

HTTP status code returned by the server.

public HttpStatusCode StatusCode { get; }

Property Value

HttpStatusCode