ApiError
Defined in: src/ui/api-client.ts:35
Thrown by the client for non-2xx responses. Products subclass it (WebhooksApiError…).
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ApiError(status, body): ApiError;Defined in: src/ui/api-client.ts:41
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
status |
number |
body |
ApiErrorBody |
Returns
Section titled “Returns”ApiError
Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
body |
readonly |
ApiErrorBody |
The parsed error body. | src/ui/api-client.ts:39 |
status |
readonly |
number |
The HTTP status. | src/ui/api-client.ts:37 |