Skip to main content

SearchError

The only error a search provider throws, apart from PortAbortError.

This is a class exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import { SearchError } from "@mapcairn/core";

class SearchError extends Error

Constructors​

(constructor)​

constructor(kind: SearchErrorKind, message?: string);

Constructs a new instance of the SearchError class

  • kind (SearchErrorKind)
  • message? (string)

Properties​

kind​

readonly kind: SearchErrorKind;

What went wrong: offline, rate-limited or failed.

See also​

Source: packages/core/src/ports/errors.ts:19