constructor() — astro Function Reference
Architecture documentation for the constructor() function in errors.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD decf500d_3746_2ab0_cffd_4294264482ce["constructor()"] 326d2252_2e66_f4ae_847f_128b4c059da2["LiveCollectionValidationError"] decf500d_3746_2ab0_cffd_4294264482ce -->|defined in| 326d2252_2e66_f4ae_847f_128b4c059da2 202262d8_b252_d3ba_7b3f_5aedb620a826["formatZodError()"] decf500d_3746_2ab0_cffd_4294264482ce -->|calls| 202262d8_b252_d3ba_7b3f_5aedb620a826 8e75f281_a7da_f33b_4ba7_32ecdfbaa767["constructor()"] decf500d_3746_2ab0_cffd_4294264482ce -->|calls| 8e75f281_a7da_f33b_4ba7_32ecdfbaa767 style decf500d_3746_2ab0_cffd_4294264482ce fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/content/loaders/errors.ts lines 38–48
constructor(collection: string, entryId: string, error: z.$ZodError) {
super(
collection,
[
`**${collection} → ${entryId}** data does not match the collection schema.\n`,
...formatZodError(error),
'',
].join('\n'),
);
this.name = 'LiveCollectionValidationError';
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does constructor() do?
constructor() is a function in the astro codebase, defined in packages/astro/src/content/loaders/errors.ts.
Where is constructor() defined?
constructor() is defined in packages/astro/src/content/loaders/errors.ts at line 38.
What does constructor() call?
constructor() calls 2 function(s): constructor, formatZodError.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free