Table of Contents

Class HonuaFeatureServerException

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

Exception thrown when a FeatureServer request fails, including GeoServices 200-with-error responses.

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

Constructors

HonuaFeatureServerException()

Initializes a new instance of the HonuaFeatureServerException class.

public HonuaFeatureServerException()

HonuaFeatureServerException(HttpStatusCode, string, string?, Exception)

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

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

Parameters

statusCode HttpStatusCode
message string
responseBody string
innerException Exception

HonuaFeatureServerException(HttpStatusCode, string, string?, int?, IReadOnlyList<string>?)

Initializes a new instance of the HonuaFeatureServerException class.

public HonuaFeatureServerException(HttpStatusCode statusCode, string message, string? responseBody = null, int? geoServicesErrorCode = null, IReadOnlyList<string>? details = null)

Parameters

statusCode HttpStatusCode
message string
responseBody string
geoServicesErrorCode int?
details IReadOnlyList<string>

HonuaFeatureServerException(string)

Initializes a new instance of the HonuaFeatureServerException class.

public HonuaFeatureServerException(string message)

Parameters

message string

A human-readable error message.

HonuaFeatureServerException(string, Exception)

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

public HonuaFeatureServerException(string message, Exception innerException)

Parameters

message string

A human-readable error message.

innerException Exception

The inner exception that caused this exception.

Properties

Details

Additional error detail strings from the GeoServices error response.

public IReadOnlyList<string>? Details { get; }

Property Value

IReadOnlyList<string>

FailureReceipt

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

public override HonuaFailureReceipt? FailureReceipt { get; }

Property Value

HonuaFailureReceipt

GeoServicesErrorCode

The GeoServices-specific error code, if available.

public int? GeoServicesErrorCode { get; }

Property Value

int?

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

RetryAfter

The server's Retry-After delay, when the response carried one (for example a 429 throttling response or a 503 while the source is temporarily unavailable). Null when the response did not include a Retry-After header.

public TimeSpan? RetryAfter { get; init; }

Property Value

TimeSpan?

StatusCode

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

public HttpStatusCode StatusCode { get; }

Property Value

HttpStatusCode