class SelfRegistrationNotSupportedError
extends Error
Since 0.2.0

selfRegistration was configured against a provider that cannot register.

Only Consul has an agent API to register against. A static list has nothing to register with, the Kubernetes control plane owns Endpoint membership, and DNS records are zone data — honoring the option on any of them would be a silent no-op, so it fails at register() instead.

Constructors

SelfRegistrationNotSupportedError(provider: string)
Parameters
provider: string

The configured provider arm

Properties

readonly
name: string

Discriminating name for instanceof-free checks.

Usage

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