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
statusCodeHttpStatusCodemessagestringerrorDetailsHonuaPortalErrorDetails
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
statusCodeHttpStatusCodemessagestringinnerExceptionException
HonuaPortalException(string)
Initializes a new instance of the HonuaPortalException class.
public HonuaPortalException(string message)
Parameters
messagestring
HonuaPortalException(string, Exception)
Initializes a new instance of the HonuaPortalException class with an inner exception.
public HonuaPortalException(string message, Exception innerException)
Parameters
Properties
Details
Additional error detail strings from the Portal error envelope, if available.
public IReadOnlyList<string>? Details { get; }
Property Value
FailureReceipt
Structured failure receipt captured from the HTTP response, if available.
public override HonuaFailureReceipt? FailureReceipt { get; }
Property Value
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
ResponseBody
Raw response body, if available.
public string? ResponseBody { get; }
Property Value
RetryAfter
Server Retry-After delay when the response carried one, or null otherwise.
public TimeSpan? RetryAfter { get; init; }
Property Value
StatusCode
HTTP status code returned by the server, or the protocol error code mapped to an HTTP status.
public HttpStatusCode StatusCode { get; }