Table of Contents

Class HonuaSpecException

Namespace
Honua.Sdk.Spec
Assembly
Honua.Sdk.Spec.dll

Exception thrown when the spec REST API returns an unsuccessful response.

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

Constructors

HonuaSpecException()

Initializes a new instance of the HonuaSpecException class.

public HonuaSpecException()

HonuaSpecException(HttpStatusCode, string, string?, SpecProblem?)

Initializes a new instance of the HonuaSpecException class.

public HonuaSpecException(HttpStatusCode statusCode, string message, string? responseBody = null, SpecProblem? problem = null)

Parameters

statusCode HttpStatusCode
message string
responseBody string
problem SpecProblem

HonuaSpecException(string)

Initializes a new instance of the HonuaSpecException class.

public HonuaSpecException(string message)

Parameters

message string

Error message.

HonuaSpecException(string, Exception)

Initializes a new instance of the HonuaSpecException class.

public HonuaSpecException(string message, Exception innerException)

Parameters

message string

Error message.

innerException Exception

Inner 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?

Problem

Structured problem details when available.

public SpecProblem? Problem { get; }

Property Value

SpecProblem

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

Raw response body when available.

public string? ResponseBody { get; }

Property Value

string

StatusCode

HTTP status code.

public HttpStatusCode StatusCode { get; }

Property Value

HttpStatusCode