APIError

APIError

Error raised when an API request fails.

Constructor

new APIError(message, code)

Creates a new APIError instance.

Parameters:
Name Type Description
message string

the error message

code string

the error code

Source:

Methods

(static) fromResponseBody(body) → {APIError}

Constructs an APIError from a request response.

Parameters:
Name Type Description
body object

the body of a request response

Source: