Skip to content
docs

CowApiError

Defined in: protocol-swap2-cow/src/api.ts:38

An answer of the orderbook that is not a success. errorType is the API’s own (letters, digits, underscore) or HTTP <status>.

  • Error

new CowApiError(status, errorType, description): CowApiError

Defined in: protocol-swap2-cow/src/api.ts:41

number

string

string

CowApiError

Error.constructor

readonly errorType: string

Defined in: protocol-swap2-cow/src/api.ts:40


readonly status: number

Defined in: protocol-swap2-cow/src/api.ts:39