# SearchError

The only error a search provider throws, apart from [`PortAbortError`](https://docs.mapcairn.com/api/core/PortAbortError.md).

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

## Signature

```ts
import { SearchError } from "@mapcairn/core";
 
class SearchError extends Error
```

## Constructors

### (constructor)

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

Constructs a new instance of the `SearchError` class

- `kind` (`SearchErrorKind`)
- `message?` (`string`)

## Properties

### kind

```ts
readonly kind: SearchErrorKind;
```

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

## See also

- [`SearchErrorKind`](https://docs.mapcairn.com/api/core/SearchErrorKind.md)

Source: [packages/core/src/ports/errors.ts:19](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/ports/errors.ts#L19)
