Module

std/dotenv/mod.ts>MissingEnvVarsError

The Deno Standard Library
Latest
class MissingEnvVarsError
extends Error
import { MissingEnvVarsError } from "https://dotland.deno.dev/std@0.224.0/dotenv/mod.ts";

Error thrown in {@link load} and {@link loadSync} when required environment variables are missing.

Constructors

new
MissingEnvVarsError(message: string, missing: string[])

Constructs a new instance.

Properties

missing: string[]

The keys of the missing environment variables.