Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NotRegisteredError

This error represents the condition when an environment variable was requested without first being registered.

Example

Environment.register("var1", "test");

Environment.get("var1"); // returns the env setting or default
Environment.get("var2"); // throws error

Hierarchy

  • Error
    • NotRegisteredError

Index

Constructors

Properties

Constructors

constructor

Properties

key

key: string

The environment key that has not been registered.

message

message: string

name

name: string

Optional stack

stack: string

Static Error

Error: ErrorConstructor

Generated using TypeDoc