AcrossRefusal
Defined in: protocol-swap2-across/src/refusal.ts:50
code names the check; reason (a Swap2RefusalReason from @anywalletkit/protocol-swap2-core) is the stable
classification an app switches on. It is set where the refusal is raised, so one code can carry different reasons
(a fill deadline too far ahead is policy_refused, one already too close is quote_expired); a malformed request
from the caller (a programming error) carries none.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AcrossRefusal(
code,detail,reason?):AcrossRefusal
Defined in: protocol-swap2-across/src/refusal.ts:53
Parameters
Section titled “Parameters”detail
Section titled “detail”string
reason?
Section titled “reason?”Swap2RefusalReason
Returns
Section titled “Returns”AcrossRefusal
Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”
readonlycode:AcrossRefusalCode
Defined in: protocol-swap2-across/src/refusal.ts:51
reason?
Section titled “reason?”
readonlyoptionalreason?:Swap2RefusalReason
Defined in: protocol-swap2-across/src/refusal.ts:52