Table of Contents

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

statusCode HttpStatusCode
message string
responseBody string
exceptionCode string

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

statusCode HttpStatusCode
message string
responseBody string
exceptionCode string
innerException Exception

HonuaWfsException(string)

Initializes a new instance of the HonuaWfsException class.

public HonuaWfsException(string message)

Parameters

message string

A 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

message string

A human-readable error message.

innerException Exception

The 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

string

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

StatusCode

HTTP status code returned by the server.

public HttpStatusCode StatusCode { get; }

Property Value

HttpStatusCode