class DiscoveryUnavailableError
extends Error
Since 0.2.0

Discovery could not answer.

Thrown when a backend read fails with nothing cached to fall back on, when the DNS provider is configured on a runtime with no resolver, and when a Kubernetes service exposes several ports and none was named.

Constructors

DiscoveryUnavailableError(
message: string,
options?: ErrorOptions
)
Parameters
message: string

What could not be answered, and why

optional
options: ErrorOptions

Standard error options; pass the backend failure as cause

Properties

readonly
name: string

Discriminating name for instanceof-free checks.

Usage

import { DiscoveryUnavailableError } from "service-discovery-plugin/src/index.ts";