UNPKG

@yext/search-core

Version:

Typescript Networking Library for the Yext Search API

19 lines (18 loc) 445 B
/** * Represents an error * * @remarks * If the error originates from the Search API, the code and type property will be present. * * @public */ export declare class SearchError extends Error { /** The error message. */ message: string; /** Search API error code. */ code?: number; /** Search API error type. */ type?: string; /** @internal */ constructor(message: string, code?: number, type?: string); }