RegistryUnauthorizedError Class — ui Architecture
Architecture documentation for the RegistryUnauthorizedError class in errors.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 58e9ce84_652a_55a1_1f9b_e7b48f024029["RegistryUnauthorizedError"] f7f7a7b3_695f_ee49_7087_eefcb981b572["errors.ts"] 58e9ce84_652a_55a1_1f9b_e7b48f024029 -->|defined in| f7f7a7b3_695f_ee49_7087_eefcb981b572 2cda6d02_c51a_4d07_c4d7_8ce124843a33["constructor()"] 58e9ce84_652a_55a1_1f9b_e7b48f024029 -->|method| 2cda6d02_c51a_4d07_c4d7_8ce124843a33
Relationship Graph
Source Code
packages/shadcn/src/registry/errors.ts lines 93–107
export class RegistryUnauthorizedError extends RegistryError {
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
Defined In
Source
Frequently Asked Questions
What is the RegistryUnauthorizedError class?
RegistryUnauthorizedError is a class in the ui codebase, defined in packages/shadcn/src/registry/errors.ts.
Where is RegistryUnauthorizedError defined?
RegistryUnauthorizedError is defined in packages/shadcn/src/registry/errors.ts at line 93.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free