Warning: This is an old version. The latest stable version is v1.1.0.

Class: ApiErrors

ApiErrors(errors, …params)

An Error wrapping one or more API errors.

Constructor

new ApiErrors(errors, …params)

Parameters:
Name Type Attributes Description
errors Array.<Object>

The error objects from the API. Must be nonempty, and each error must contain at least a code. Other error members depend on the errorformat of the request.

params * <repeatable>

Any other params for the Error constructor. (Not including the message: the first error code is used for that.)

Source:

Members

errors :Array.<Object>

The error objects from the API.

Type:
  • Array.<Object>
Source: