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
statusCodeHttpStatusCodemessagestringresponseBodystringinnerExceptionException
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
statusCodeHttpStatusCodemessagestringresponseBodystringgeoServicesErrorCodeint?detailsIReadOnlyList<string>
HonuaFeatureServerException(string)
Initializes a new instance of the HonuaFeatureServerException class.
public HonuaFeatureServerException(string message)
Parameters
messagestringA 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
messagestringA human-readable error message.
innerExceptionExceptionThe inner exception that caused this exception.
Properties
Details
Additional error detail strings from the GeoServices error response.
public IReadOnlyList<string>? Details { get; }
Property Value
FailureReceipt
The normalized machine terminal receipt, when the failure came from a remote protocol.
public override HonuaFailureReceipt? FailureReceipt { get; }
Property Value
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
ResponseBody
The raw response body, if available.
public string? ResponseBody { get; }
Property Value
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
StatusCode
HTTP status code returned by the server, or the GeoServices error code mapped to an HTTP status.
public HttpStatusCode StatusCode { get; }