Skip to main content

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​

import { LayerError } from "@mapcairn/sdk/browser";

class LayerError extends Error

Constructors​

(constructor)​

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

Constructs a new instance of the LayerError class

  • kind (LayerErrorKind)
  • message? (string)

Properties​

kind​

readonly kind: LayerErrorKind;

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

See also​