Home / Class/ RegistryInvalidNamespaceError Class — ui Architecture

RegistryInvalidNamespaceError Class — ui Architecture

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

Entity Profile

Dependency Diagram

graph TD
  5f16ef10_b311_e9a4_8af8_637aade85f1e["RegistryInvalidNamespaceError"]
  f7f7a7b3_695f_ee49_7087_eefcb981b572["errors.ts"]
  5f16ef10_b311_e9a4_8af8_637aade85f1e -->|defined in| f7f7a7b3_695f_ee49_7087_eefcb981b572
  58695917_d541_3cf4_3c19_99e8ec777233["constructor()"]
  5f16ef10_b311_e9a4_8af8_637aade85f1e -->|method| 58695917_d541_3cf4_3c19_99e8ec777233

Relationship Graph

Source Code

packages/shadcn/src/registry/errors.ts lines 240–252

export class RegistryInvalidNamespaceError extends RegistryError {
  constructor(public readonly name: string) {
    const message = `Invalid registry namespace: "${name}". Registry names must start with @ (e.g., @shadcn, @v0).`

    super(message, {
      code: RegistryErrorCode.VALIDATION_ERROR,
      context: { name },
      suggestion:
        "Use a valid registry name starting with @ or provide a direct URL to the registry.",
    })
    this.name = "RegistryInvalidNamespaceError"
  }
}

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free