constructor() — ui Function Reference
Architecture documentation for the constructor() function in errors.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 2cda6d02_c51a_4d07_c4d7_8ce124843a33["constructor()"] 58e9ce84_652a_55a1_1f9b_e7b48f024029["RegistryUnauthorizedError"] 2cda6d02_c51a_4d07_c4d7_8ce124843a33 -->|defined in| 58e9ce84_652a_55a1_1f9b_e7b48f024029 style 2cda6d02_c51a_4d07_c4d7_8ce124843a33 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/shadcn/src/registry/errors.ts lines 94–106
constructor(public readonly url: string, cause?: unknown) {
const message = `You are not authorized to access the item at ${url}. If this is a remote registry, you may need to authenticate.`
super(message, {
code: RegistryErrorCode.UNAUTHORIZED,
statusCode: 401,
cause,
context: { url },
suggestion:
"Check your authentication credentials and environment variables.",
})
this.name = "RegistryUnauthorizedError"
}
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 94.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free