Table of Contents

Class HonuaOgcRecordsException

Namespace
Honua.Sdk.Catalogs.Records.Exceptions
Assembly
Honua.Sdk.Catalogs.dll

Exception thrown when an OGC API Records request fails, including RFC 7807 Problem Details responses.

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

Constructors

HonuaOgcRecordsException()

Initializes a new instance of the HonuaOgcRecordsException class.

public HonuaOgcRecordsException()

HonuaOgcRecordsException(HttpStatusCode, string, string?, Exception)

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

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

Parameters

statusCode HttpStatusCode
message string
responseBody string
innerException Exception

HonuaOgcRecordsException(HttpStatusCode, string, string?, string?, string?, string?)

Initializes a new instance of the HonuaOgcRecordsException class.

public HonuaOgcRecordsException(HttpStatusCode statusCode, string message, string? responseBody = null, string? problemType = null, string? problemTitle = null, string? problemDetail = null)

Parameters

statusCode HttpStatusCode
message string
responseBody string
problemType string
problemTitle string
problemDetail string

HonuaOgcRecordsException(string)

Initializes a new instance of the HonuaOgcRecordsException class.

public HonuaOgcRecordsException(string message)

Parameters

message string

A human-readable error message.

HonuaOgcRecordsException(string, Exception)

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

public HonuaOgcRecordsException(string message, Exception innerException)

Parameters

message string

A human-readable error message.

innerException Exception

The inner exception that caused this exception.

Properties

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?

ProblemDetail

The RFC 7807 problem detail, if available.

public string? ProblemDetail { get; }

Property Value

string

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

ProblemTitle

The RFC 7807 problem title, if available.

public string? ProblemTitle { get; }

Property Value

string

ProblemType

The RFC 7807 problem type URI, if available.

public string? ProblemType { get; }

Property Value

string

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