Skip to main content
Thrown at construction when the control plane API key is set to a value that is not a fine-grained control plane key. The message names where the value came from and what it looks like instead, and never echoes the value.

Extends

Constructors

Constructor

new MalformedApiKeyError(source, requirement): MalformedApiKeyError

Parameters

source
string
requirement
string

Returns

MalformedApiKeyError

Overrides

HoneyHiveError.constructor

source

readonly source: string
The option or environment variable the value came from.

messageFor()

messageFor(source): string
The same message with source named as where the value came from, for a caller that supplied the value under a different name.

Parameters

source
string

Returns

string