Home / Function/ constructor() — astro Function Reference

constructor() — astro Function Reference

Architecture documentation for the constructor() function in errors.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  be7ef71c_c65d_7c64_3eaa_df96be074ed9["constructor()"]
  2e347169_fdd1_ab3b_7c31_39662b9eca39["LiveEntryNotFoundError"]
  be7ef71c_c65d_7c64_3eaa_df96be074ed9 -->|defined in| 2e347169_fdd1_ab3b_7c31_39662b9eca39
  8e75f281_a7da_f33b_4ba7_32ecdfbaa767["constructor()"]
  8e75f281_a7da_f33b_4ba7_32ecdfbaa767 -->|calls| be7ef71c_c65d_7c64_3eaa_df96be074ed9
  8e75f281_a7da_f33b_4ba7_32ecdfbaa767["constructor()"]
  be7ef71c_c65d_7c64_3eaa_df96be074ed9 -->|calls| 8e75f281_a7da_f33b_4ba7_32ecdfbaa767
  style be7ef71c_c65d_7c64_3eaa_df96be074ed9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/content/loaders/errors.ts lines 25–31

	constructor(collection: string, entryFilter: string | Record<string, unknown>) {
		super(
			collection,
			`Entry ${collection} → ${typeof entryFilter === 'string' ? entryFilter : JSON.stringify(entryFilter)} was not found.`,
		);
		this.name = 'LiveEntryNotFoundError';
	}

Subdomains

Called By

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 25.
What does constructor() call?
constructor() calls 1 function(s): constructor.
What calls constructor()?
constructor() is called by 1 function(s): constructor.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free