Orderly SDKs / Modules / @orderly.network/types / ApiError

Class: ApiError

@orderly.network/types.ApiError

Hierarchy

  • Error

    ApiError

Table of contents

Constructors

Properties

Constructors

constructor

new ApiError(message, code)

Parameters

NameType
messagestring
codenumber

Overrides

Error.constructor

Defined in

packages/types/src/errors.ts:2

Properties

code

Private Readonly code: number

Defined in

packages/types/src/errors.ts:2


message

message: string

Inherited from

Error.message

Defined in

node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es5.d.ts:1068


name

name: string

Inherited from

Error.name

Defined in

node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es5.d.ts:1067


stack

Optional stack: string

Inherited from

Error.stack

Defined in

node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es5.d.ts:1069