Skip to content

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 ​

Constructors ​

Constructor ​

ts
new NetworkAPIError(
   network: string, 
   message: string, 
   options?: object): NetworkAPIError;

Parameters ​

ParameterType
networkstring
messagestring
options{ cause?: unknown; status?: number; url?: string; }
options.cause?unknown
options.status?number
options.url?string

Returns ​

NetworkAPIError

Overrides ​

ts
Error.constructor

Properties ​

PropertyModifierType
networkreadonlystring
statusreadonlynumber | undefined
url?readonlystring

Distributed under the MIT License.