Skip to main content

RoutingError

The only error a routing provider rejects with.

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

Signature​

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

class RoutingError extends Error

Constructors​

(constructor)​

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

Constructs a new instance of the RoutingError class

  • kind (RoutingErrorKind)
  • message? (string)

Properties​

kind​

readonly kind: RoutingErrorKind;

What went wrong: network, invalid, no-route, rate-limited, unsupported or aborted.

See also​