Swap2Error
Defined in: protocol-swap2-core/src/errors.ts:15
Public, machine-readable error base shared by every contribution package.
Extends
Section titled “Extends”Error
Extended by
Section titled “Extended by”Swap2ConfigurationErrorSwap2ValidationErrorSwap2QuoteErrorSwap2ExecutionErrorSwap2UnsupportedOperationErrorSwap2FeeLimitErrorSwap2StatusError
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Swap2Error(
message,code,options?):Swap2Error
Defined in: protocol-swap2-core/src/errors.ts:16
Parameters
Section titled “Parameters”message
Section titled “message”string
options?
Section titled “options?”ErrorOptions
Returns
Section titled “Returns”Swap2Error
Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”
readonlycode:Swap2ErrorCode
Defined in: protocol-swap2-core/src/errors.ts:16