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
statusCodeHttpStatusCodeThe HTTP status code returned by the server.
messagestringA human-readable error message.
responseBodystringThe 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
statusCodeHttpStatusCodeThe HTTP status code returned by the server.
messagestringA human-readable error message.
responseBodystringThe raw response body, if available.
innerExceptionExceptionThe inner exception that caused this exception.
HonuaAdminApiException(string)
Initializes a new instance of the HonuaAdminApiException class.
public HonuaAdminApiException(string message)
Parameters
messagestringA 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
messagestringA human-readable error message.
innerExceptionExceptionThe 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
FailureReceipt
The normalized machine terminal receipt, when the failure came from a remote protocol.
public override HonuaFailureReceipt? FailureReceipt { 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 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
ResponseBody
The raw response body, if available.
public string? ResponseBody { get; }
Property Value
StatusCode
HTTP status code returned by the server.
public HttpStatusCode StatusCode { get; }