RegistryForbiddenError Class — ui Architecture
Architecture documentation for the RegistryForbiddenError class in errors.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD b17041cc_90aa_57b3_8c4a_7cabbe8b5a81["RegistryForbiddenError"] f7f7a7b3_695f_ee49_7087_eefcb981b572["errors.ts"] b17041cc_90aa_57b3_8c4a_7cabbe8b5a81 -->|defined in| f7f7a7b3_695f_ee49_7087_eefcb981b572 1b498d12_d0ad_00ab_8fc9_22d5fee50f8a["constructor()"] b17041cc_90aa_57b3_8c4a_7cabbe8b5a81 -->|method| 1b498d12_d0ad_00ab_8fc9_22d5fee50f8a
Relationship Graph
Source Code
packages/shadcn/src/registry/errors.ts lines 109–123
export class RegistryForbiddenError 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.FORBIDDEN,
statusCode: 403,
cause,
context: { url },
suggestion:
"Check your authentication credentials and environment variables.",
})
this.name = "RegistryForbiddenError"
}
}
Domain
Defined In
Source
Frequently Asked Questions
What is the RegistryForbiddenError class?
RegistryForbiddenError is a class in the ui codebase, defined in packages/shadcn/src/registry/errors.ts.
Where is RegistryForbiddenError defined?
RegistryForbiddenError is defined in packages/shadcn/src/registry/errors.ts at line 109.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free