Skip to content

ConfigError

1 min read

Import: import system.config;

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

ConfigError

Invalid or missing configuration, including the originating source and key.

public class ConfigError: Error

key

Logical setting name associated with the failure.

public key: string

source

The default, JSON filename, environment variable, or CLI argument that supplied it.

public source: string

constructor

Creates a diagnostic with setting provenance.

public constructor(key: string, source: string, message: string)

code

Machine-readable configuration failure code.

public fun code(): string

message

Describes the invalid setting without disclosing its value.

public fun message(): string