Table of Contents

Class HonuaPortalException

Namespace
Honua.Sdk.GeoServices.Portal.Exceptions
Assembly
Honua.Sdk.GeoServices.dll

Exception thrown when a Honua Portal facade request fails, including HTTP 200 protocol error envelopes.

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

Constructors

HonuaPortalException()

Initializes a new instance of the HonuaPortalException class.

public HonuaPortalException()

HonuaPortalException(HttpStatusCode, string, HonuaPortalErrorDetails?)

Initializes a new instance of the HonuaPortalException class with an HTTP status and optional metadata.

public HonuaPortalException(HttpStatusCode statusCode, string message, HonuaPortalErrorDetails? errorDetails = null)

Parameters

statusCode HttpStatusCode
message string
errorDetails HonuaPortalErrorDetails

HonuaPortalException(HttpStatusCode, string, Exception)

Initializes a new instance of the HonuaPortalException class with an HTTP status and inner exception.

public HonuaPortalException(HttpStatusCode statusCode, string message, Exception innerException)

Parameters

statusCode HttpStatusCode
message string
innerException Exception

HonuaPortalException(string)

Initializes a new instance of the HonuaPortalException class.

public HonuaPortalException(string message)

Parameters

message string

HonuaPortalException(string, Exception)

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

public HonuaPortalException(string message, Exception innerException)

Parameters

message string
innerException Exception

Properties

Details

Additional error detail strings from the Portal error envelope, if available.

public IReadOnlyList<string>? Details { get; }

Property Value

IReadOnlyList<string>

FailureReceipt

Structured failure receipt captured from the HTTP response, if available.

public override HonuaFailureReceipt? FailureReceipt { get; }

Property Value

HonuaFailureReceipt

HttpStatus

Numeric HTTP status code associated with this failure.

public override int? HttpStatus { get; }

Property Value

int?

PortalErrorCode

Protocol-specific error code returned in the Portal error envelope, if available.

public int? PortalErrorCode { get; }

Property Value

int?

ProblemDetails

Problem-details summary describing this failure.

public override HonuaProblemDetails? ProblemDetails { get; }

Property Value

HonuaProblemDetails

ResponseBody

Raw response body, if available.

public string? ResponseBody { get; }

Property Value

string

RetryAfter

Server Retry-After delay when the response carried one, or null otherwise.

public TimeSpan? RetryAfter { get; init; }

Property Value

TimeSpan?

StatusCode

HTTP status code returned by the server, or the protocol error code mapped to an HTTP status.

public HttpStatusCode StatusCode { get; }

Property Value

HttpStatusCode