RegistryLocalFileError Class — ui Architecture
Architecture documentation for the RegistryLocalFileError class in errors.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD fcbaa9fb_ed88_33ae_3e9e_439f3a5cbf3e["RegistryLocalFileError"] f7f7a7b3_695f_ee49_7087_eefcb981b572["errors.ts"] fcbaa9fb_ed88_33ae_3e9e_439f3a5cbf3e -->|defined in| f7f7a7b3_695f_ee49_7087_eefcb981b572 533d3f8c_461e_a00d_a2c3_4c3179b2a949["constructor()"] fcbaa9fb_ed88_33ae_3e9e_439f3a5cbf3e -->|method| 533d3f8c_461e_a00d_a2c3_4c3179b2a949
Relationship Graph
Source Code
packages/shadcn/src/registry/errors.ts lines 184–194
export class RegistryLocalFileError extends RegistryError {
constructor(public readonly filePath: string, cause?: unknown) {
super(`Failed to read local registry file: ${filePath}`, {
code: RegistryErrorCode.LOCAL_FILE_ERROR,
cause,
context: { filePath },
suggestion: "Check if the file exists and you have read permissions.",
})
this.name = "RegistryLocalFileError"
}
}
Domain
Defined In
Source
Frequently Asked Questions
What is the RegistryLocalFileError class?
RegistryLocalFileError is a class in the ui codebase, defined in packages/shadcn/src/registry/errors.ts.
Where is RegistryLocalFileError defined?
RegistryLocalFileError is defined in packages/shadcn/src/registry/errors.ts at line 184.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free