UNPKG

meilisearch

Version:

The Meilisearch JS client for Node.js and the browser.

16 lines (12 loc) 506 B
import { MeiliSearchError } from "./meilisearch-error.js"; /** Error thrown when a waiting for a task times out. */ export class MeiliSearchTaskTimeOutError extends MeiliSearchError { override name = "MeiliSearchTaskTimeOutError"; override cause: { taskUid: number; timeout: number }; constructor(taskUid: number, timeout: number) { super( `timeout of ${timeout}ms has exceeded on task ${taskUid} when waiting for it to be resolved.`, ); this.cause = { taskUid, timeout }; } }