Class HonuaWfsException
- Namespace
- Honua.Sdk.OgcFeatures.Wfs.Exceptions
- Assembly
- Honua.Sdk.OgcFeatures.dll
Exception thrown when a WFS request fails.
public sealed class HonuaWfsException : HonuaException, ISerializable
- Inheritance
-
HonuaWfsException
- Implements
- Inherited Members
Constructors
HonuaWfsException()
Initializes a new instance of the HonuaWfsException class.
public HonuaWfsException()
HonuaWfsException(HttpStatusCode, string, string?, string?)
Initializes a new instance of the HonuaWfsException class.
public HonuaWfsException(HttpStatusCode statusCode, string message, string? responseBody = null, string? exceptionCode = null)
Parameters
statusCodeHttpStatusCodemessagestringresponseBodystringexceptionCodestring
HonuaWfsException(HttpStatusCode, string, string?, string?, Exception)
Initializes a new instance of the HonuaWfsException class with an inner exception.
public HonuaWfsException(HttpStatusCode statusCode, string message, string? responseBody, string? exceptionCode, Exception innerException)
Parameters
statusCodeHttpStatusCodemessagestringresponseBodystringexceptionCodestringinnerExceptionException
HonuaWfsException(string)
Initializes a new instance of the HonuaWfsException class.
public HonuaWfsException(string message)
Parameters
messagestringA human-readable error message.
HonuaWfsException(string, Exception)
Initializes a new instance of the HonuaWfsException class with an inner exception.
public HonuaWfsException(string message, Exception innerException)
Parameters
messagestringA human-readable error message.
innerExceptionExceptionThe inner exception that caused this exception.
Properties
ExceptionCode
OGC exception code from the ExceptionReport (e.g. InvalidParameterValue, OperationNotSupported).
null if the response was not a valid ExceptionReport.
public string? ExceptionCode { 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; }