API Reference
classes
Rpcerror

@coasys/ad4m / Exports / RpcError

Class: RpcError

Error thrown by ApiClient when an RPC call fails.

Hierarchy

  • Error

    ↳ RpcError

Table of contents

Constructors

Properties

Constructors

constructor

• new RpcError(status, body)

Parameters

NameType
statusnumber
bodystring

Overrides

Error.constructor

Defined in

core/src/apiClient.ts:19 (opens in a new tab)

Properties

body

• Readonly body: string

Raw error message from server.

Defined in

core/src/apiClient.ts:17 (opens in a new tab)


status

• Readonly status: number

Error code (maps to HTTP status semantics: 400, 401, 403, 404, 500).

Defined in

core/src/apiClient.ts:15 (opens in a new tab)