# 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/sdk/browser`, checked against version 0.2.0.

## Signature

```ts
import { SearchError } from "@mapcairn/sdk/browser";
 
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/sdk/browser/SearchErrorKind.md)
