Class: APIError

APIError()

A type which represents a parsed error from the API, or an internal wrapper error.

Constructor

new APIError()

Source:

Members

code :string

Returns the machine-readable code of the error.
Type:
  • string
Source:

message :string

Returns the human-readable message of the error.
Type:
  • string
Source:

Methods

(static) internal(message) → {APIError}

Constructs a new Error which originated within the wrapper.
Parameters:
Name Type Description
message string The internal error message.
Source:
Returns:
The newly-constructed error.
Type
APIError