RegistryNotConfiguredError Class — ui Architecture
Architecture documentation for the RegistryNotConfiguredError class in errors.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD ba75c0c1_4005_6319_a4e0_895a6ec89821["RegistryNotConfiguredError"] f7f7a7b3_695f_ee49_7087_eefcb981b572["errors.ts"] ba75c0c1_4005_6319_a4e0_895a6ec89821 -->|defined in| f7f7a7b3_695f_ee49_7087_eefcb981b572 46b36d39_eb89_0aff_ce74_4fd03188b474["constructor()"] ba75c0c1_4005_6319_a4e0_895a6ec89821 -->|method| 46b36d39_eb89_0aff_ce74_4fd03188b474
Relationship Graph
Source Code
packages/shadcn/src/registry/errors.ts lines 163–182
export class RegistryNotConfiguredError extends RegistryError {
constructor(public readonly registryName: string | null) {
const message = registryName
? `Unknown registry "${registryName}". Make sure it is defined in components.json as follows:
{
"registries": {
"${registryName}": "[URL_TO_REGISTRY]"
}
}`
: `Unknown registry. Make sure it is defined in components.json under "registries".`
super(message, {
code: RegistryErrorCode.NOT_CONFIGURED,
context: { registryName },
suggestion:
"Add the registry configuration to your components.json file. Consult the registry documentation for the correct format.",
})
this.name = "RegistryNotConfiguredError"
}
}
Domain
Defined In
Source
Frequently Asked Questions
What is the RegistryNotConfiguredError class?
RegistryNotConfiguredError is a class in the ui codebase, defined in packages/shadcn/src/registry/errors.ts.
Where is RegistryNotConfiguredError defined?
RegistryNotConfiguredError is defined in packages/shadcn/src/registry/errors.ts at line 163.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free