# LayerError

The only error a layer source rejects with.

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

## Signature

```ts
import { LayerError } from "@mapcairn/sdk/browser";
 
class LayerError extends Error
```

## Constructors

### (constructor)

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

Constructs a new instance of the `LayerError` class

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

## Properties

### kind

```ts
readonly kind: LayerErrorKind;
```

What went wrong: `network`, `invalid`, `empty` or `aborted`.

## See also

- [`LayerErrorKind`](https://docs.mapcairn.com/api/sdk/browser/LayerErrorKind.md)
