constructor() — ui Function Reference
Architecture documentation for the constructor() function in errors.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD a059acc6_0861_b9bc_cd5e_62bae81ab29c["constructor()"] 9ced741a_6ce2_71fe_c82f_d768ca8e3fbe["RegistryNotFoundError"] a059acc6_0861_b9bc_cd5e_62bae81ab29c -->|defined in| 9ced741a_6ce2_71fe_c82f_d768ca8e3fbe style a059acc6_0861_b9bc_cd5e_62bae81ab29c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/shadcn/src/registry/errors.ts lines 78–90
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"
}
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 78.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free