Home / Class/ RegistryNotFoundError Class — ui Architecture

RegistryNotFoundError Class — ui Architecture

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

Entity Profile

Dependency Diagram

graph TD
  9ced741a_6ce2_71fe_c82f_d768ca8e3fbe["RegistryNotFoundError"]
  f7f7a7b3_695f_ee49_7087_eefcb981b572["errors.ts"]
  9ced741a_6ce2_71fe_c82f_d768ca8e3fbe -->|defined in| f7f7a7b3_695f_ee49_7087_eefcb981b572
  a059acc6_0861_b9bc_cd5e_62bae81ab29c["constructor()"]
  9ced741a_6ce2_71fe_c82f_d768ca8e3fbe -->|method| a059acc6_0861_b9bc_cd5e_62bae81ab29c

Relationship Graph

Source Code

packages/shadcn/src/registry/errors.ts lines 77–91

export class RegistryNotFoundError extends RegistryError {
  constructor(public readonly url: string, cause?: unknown) {
    const message = `The item at ${url} was not found. It may not exist at the registry.`

    super(message, {
      code: RegistryErrorCode.NOT_FOUND,
      statusCode: 404,
      cause,
      context: { url },
      suggestion:
        "Check if the item name is correct and the registry URL is accessible.",
    })
    this.name = "RegistryNotFoundError"
  }
}

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free