LiveCollectionCacheHintError Class — astro Architecture
Architecture documentation for the LiveCollectionCacheHintError class in errors.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD aac86e2c_9a2e_66d4_f18c_2686dd3c705d["LiveCollectionCacheHintError"] 244bd8fe_4d6f_01c4_922b_3ce9b01593be["errors.ts"] aac86e2c_9a2e_66d4_f18c_2686dd3c705d -->|defined in| 244bd8fe_4d6f_01c4_922b_3ce9b01593be ae0cabb0_1b68_899d_0aa1_2d3f9ad75a05["constructor()"] aac86e2c_9a2e_66d4_f18c_2686dd3c705d -->|method| ae0cabb0_1b68_899d_0aa1_2d3f9ad75a05 cdf2fa15_a5b8_eda7_8b2a_afb48d72e4a1["is()"] aac86e2c_9a2e_66d4_f18c_2686dd3c705d -->|method| cdf2fa15_a5b8_eda7_8b2a_afb48d72e4a1
Relationship Graph
Source Code
packages/astro/src/content/loaders/errors.ts lines 54–69
export class LiveCollectionCacheHintError extends LiveCollectionError {
constructor(collection: string, entryId: string | undefined, error: z.$ZodError) {
super(
collection,
[
`**${String(collection)}${entryId ? ` → ${String(entryId)}` : ''}** returned an invalid cache hint.\n`,
...formatZodError(error),
'',
].join('\n'),
);
this.name = 'LiveCollectionCacheHintError';
}
static is(error: unknown): error is LiveCollectionCacheHintError {
return (error as any)?.name === 'LiveCollectionCacheHintError';
}
}
Defined In
Source
Frequently Asked Questions
What is the LiveCollectionCacheHintError class?
LiveCollectionCacheHintError is a class in the astro codebase, defined in packages/astro/src/content/loaders/errors.ts.
Where is LiveCollectionCacheHintError defined?
LiveCollectionCacheHintError is defined in packages/astro/src/content/loaders/errors.ts at line 54.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free