constructor() — ui Function Reference
Architecture documentation for the constructor() function in errors.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 46b36d39_eb89_0aff_ce74_4fd03188b474["constructor()"] ba75c0c1_4005_6319_a4e0_895a6ec89821["RegistryNotConfiguredError"] 46b36d39_eb89_0aff_ce74_4fd03188b474 -->|defined in| ba75c0c1_4005_6319_a4e0_895a6ec89821 style 46b36d39_eb89_0aff_ce74_4fd03188b474 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/shadcn/src/registry/errors.ts lines 164–181
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
Subdomains
Defined In
Source
Frequently Asked Questions
What does constructor() do?
constructor() is a function in the ui codebase, defined in packages/shadcn/src/registry/errors.ts.
Where is constructor() defined?
constructor() is defined in packages/shadcn/src/registry/errors.ts at line 164.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free