Class: NetworkAPIError
base error for failures raised by a network stats API client
network identifies the backend that produced the error, allowing callers to distinguish failures when handling multiple network clients.
Extends
Error
Extended by
NetworkAuthExhaustedErrorNetworkBadRequestErrorNetworkHTTPErrorNetworkRateLimitErrorNetworkValidationError
Constructors
Constructor
ts
new NetworkAPIError(
network: string,
message: string,
options?: object): NetworkAPIError;Parameters
| Parameter | Type |
|---|---|
network | string |
message | string |
options | { cause?: unknown; status?: number; url?: string; } |
options.cause? | unknown |
options.status? | number |
options.url? | string |
Returns
NetworkAPIError
Overrides
ts
Error.constructorProperties
| Property | Modifier | Type |
|---|---|---|
network | readonly | string |
status | readonly | number | undefined |
url? | readonly | string |