Skip to main content

RoutingError

The only error a routing provider rejects with.

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

Signature​

import { RoutingError } from "@mapcairn/core";

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​

Source: packages/core/src/ports/errors.ts:81