Table of Contents

Class RfqRefusedException

Namespace
NArk.ArkadeIntents.Rfq
Assembly
NArk.ArkadeIntents.dll

Thrown when a solver declines a request.

public sealed class RfqRefusedException : Exception, ISerializable
Inheritance
RfqRefusedException
Implements
Inherited Members

Constructors

RfqRefusedException(RfqRefusal)

Creates an exception retaining the solver's complete structured diagnostic.

public RfqRefusedException(RfqRefusal refusal)

Parameters

refusal RfqRefusal

RfqRefusedException(RfqRefusalReason, string?, string?)

Creates the exception from a refusal payload.

public RfqRefusedException(RfqRefusalReason reason, string? rfqId = null, string? detail = null)

Parameters

reason RfqRefusalReason

The reason from the closed set; unrecognised wire values arrive as Unknown.

rfqId string

The correlation id refused, when the solver echoed one.

detail string

The solver's optional human-readable elaboration. Never branch on it.

Properties

Detail

The solver's optional elaboration, for humans and logs only.

public string? Detail { get; }

Property Value

string

Reason

Why the solver declined.

public RfqRefusalReason Reason { get; }

Property Value

RfqRefusalReason

Refusal

The structured refusal, including optional error code and limits.

public RfqRefusal Refusal { get; }

Property Value

RfqRefusal

RfqId

The correlation id refused, if the solver echoed one.

public string? RfqId { get; }

Property Value

string