Skip to main content
Extended API error that encompasses both OpenAPI errors and other API-related errors

Extends

  • Error

Constructors

Constructor

Constructor for the APIError class

Parameters

Returns

APIError

Overrides

Methods

toJSON()

Convert the error to a JSON object, excluding undefined properties

Returns

The error as a JSON object

Properties