Home / Class/ RegistryMissingEnvironmentVariablesError Class — ui Architecture

RegistryMissingEnvironmentVariablesError Class — ui Architecture

Architecture documentation for the RegistryMissingEnvironmentVariablesError class in errors.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  53d51513_ba60_4913_ad40_e71dbff664e7["RegistryMissingEnvironmentVariablesError"]
  f7f7a7b3_695f_ee49_7087_eefcb981b572["errors.ts"]
  53d51513_ba60_4913_ad40_e71dbff664e7 -->|defined in| f7f7a7b3_695f_ee49_7087_eefcb981b572
  708b4cb9_3f04_b3b8_15bf_8125b8b94e7f["constructor()"]
  53d51513_ba60_4913_ad40_e71dbff664e7 -->|method| 708b4cb9_3f04_b3b8_15bf_8125b8b94e7f

Relationship Graph

Source Code

packages/shadcn/src/registry/errors.ts lines 221–238

export class RegistryMissingEnvironmentVariablesError extends RegistryError {
  constructor(
    public readonly registryName: string,
    public readonly missingVars: string[]
  ) {
    const message =
      `Registry "${registryName}" requires the following environment variables:\n\n` +
      missingVars.map((v) => `  • ${v}`).join("\n")

    super(message, {
      code: RegistryErrorCode.MISSING_ENV_VARS,
      context: { registryName, missingVars },
      suggestion:
        "Set the required environment variables to your .env or .env.local file.",
    })
    this.name = "RegistryMissingEnvironmentVariablesError"
  }
}

Frequently Asked Questions

What is the RegistryMissingEnvironmentVariablesError class?
RegistryMissingEnvironmentVariablesError is a class in the ui codebase, defined in packages/shadcn/src/registry/errors.ts.
Where is RegistryMissingEnvironmentVariablesError defined?
RegistryMissingEnvironmentVariablesError is defined in packages/shadcn/src/registry/errors.ts at line 221.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free