LiveCollectionError Class — astro Architecture
Architecture documentation for the LiveCollectionError class in errors.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD aadb3fde_af99_2146_4938_e2943129d6e7["LiveCollectionError"] 244bd8fe_4d6f_01c4_922b_3ce9b01593be["errors.ts"] aadb3fde_af99_2146_4938_e2943129d6e7 -->|defined in| 244bd8fe_4d6f_01c4_922b_3ce9b01593be 8e75f281_a7da_f33b_4ba7_32ecdfbaa767["constructor()"] aadb3fde_af99_2146_4938_e2943129d6e7 -->|method| 8e75f281_a7da_f33b_4ba7_32ecdfbaa767 445fc944_e6d9_7b79_93d1_8857e23a2c8e["is()"] aadb3fde_af99_2146_4938_e2943129d6e7 -->|method| 445fc944_e6d9_7b79_93d1_8857e23a2c8e
Relationship Graph
Source Code
packages/astro/src/content/loaders/errors.ts lines 7–22
export class LiveCollectionError extends Error {
constructor(
public readonly collection: string,
public readonly message: string,
public readonly cause?: Error,
) {
super(message);
this.name = 'LiveCollectionError';
if (cause?.stack) {
this.stack = cause.stack;
}
}
static is(error: unknown): error is LiveCollectionError {
return error instanceof LiveCollectionError;
}
}
Defined In
Source
Frequently Asked Questions
What is the LiveCollectionError class?
LiveCollectionError is a class in the astro codebase, defined in packages/astro/src/content/loaders/errors.ts.
Where is LiveCollectionError defined?
LiveCollectionError is defined in packages/astro/src/content/loaders/errors.ts at line 7.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free