@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
| Name | Type |
|---|---|
status | number |
body | string |
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).