Table of Contents

Class HonuaStacException

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

Exception thrown when an STAC request fails, including RFC 7807 Problem Details responses.

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

Constructors

HonuaStacException()

Initializes a new instance of the HonuaStacException class.

public HonuaStacException()

HonuaStacException(HttpStatusCode, string, string?, Exception)

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

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

Parameters

statusCode HttpStatusCode
message string
responseBody string
innerException Exception

HonuaStacException(HttpStatusCode, string, string?, string?, string?, string?)

Initializes a new instance of the HonuaStacException class.

public HonuaStacException(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

HonuaStacException(string)

Initializes a new instance of the HonuaStacException class.

public HonuaStacException(string message)

Parameters

message string

A human-readable error message.

HonuaStacException(string, Exception)

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

public HonuaStacException(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