RegistryParseError Class — ui Architecture
Architecture documentation for the RegistryParseError class in errors.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD da0cde29_64de_06f0_bb41_3d144f47ecfc["RegistryParseError"] f7f7a7b3_695f_ee49_7087_eefcb981b572["errors.ts"] da0cde29_64de_06f0_bb41_3d144f47ecfc -->|defined in| f7f7a7b3_695f_ee49_7087_eefcb981b572 17189458_a52e_0a1d_b798_0ef051254efa["constructor()"] da0cde29_64de_06f0_bb41_3d144f47ecfc -->|method| 17189458_a52e_0a1d_b798_0ef051254efa
Relationship Graph
Source Code
packages/shadcn/src/registry/errors.ts lines 196–219
export class RegistryParseError extends RegistryError {
public readonly parseError: unknown
constructor(public readonly item: string, parseError: unknown) {
let message = `Failed to parse registry item: ${item}`
if (parseError instanceof z.ZodError) {
message = `Failed to parse registry item: ${item}\n${parseError.errors
.map((e) => ` - ${e.path.join(".")}: ${e.message}`)
.join("\n")}`
}
super(message, {
code: RegistryErrorCode.PARSE_ERROR,
cause: parseError,
context: { item },
suggestion:
"The registry item may be corrupted or have an invalid format. Please make sure it returns a valid JSON object. See https://ui.shadcn.com/schema/registry-item.json.",
})
this.parseError = parseError
this.name = "RegistryParseError"
}
}
Domain
Defined In
Source
Frequently Asked Questions
What is the RegistryParseError class?
RegistryParseError is a class in the ui codebase, defined in packages/shadcn/src/registry/errors.ts.
Where is RegistryParseError defined?
RegistryParseError is defined in packages/shadcn/src/registry/errors.ts at line 196.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free