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
refusalRfqRefusal
RfqRefusedException(RfqRefusalReason, string?, string?)
Creates the exception from a refusal payload.
public RfqRefusedException(RfqRefusalReason reason, string? rfqId = null, string? detail = null)
Parameters
reasonRfqRefusalReasonThe reason from the closed set; unrecognised wire values arrive as Unknown.
rfqIdstringThe correlation id refused, when the solver echoed one.
detailstringThe 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
Reason
Why the solver declined.
public RfqRefusalReason Reason { get; }
Property Value
Refusal
The structured refusal, including optional error code and limits.
public RfqRefusal Refusal { get; }
Property Value
RfqId
The correlation id refused, if the solver echoed one.
public string? RfqId { get; }