createError() — astro Function Reference
Architecture documentation for the createError() function in astro-global.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 63a02a57_704f_b633_a733_6a36e7b3a685["createError()"] 79d578d0_f5f2_07a8_25f9_c215243ca5bc["astro-global.ts"] 63a02a57_704f_b633_a733_6a36e7b3a685 -->|defined in| 79d578d0_f5f2_07a8_25f9_c215243ca5bc d686a682_f7ad_2c8c_4731_d6d561bcdb35["createAstro()"] d686a682_f7ad_2c8c_4731_d6d561bcdb35 -->|calls| 63a02a57_704f_b633_a733_6a36e7b3a685 style 63a02a57_704f_b633_a733_6a36e7b3a685 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/runtime/server/astro-global.ts lines 5–10
function createError(name: string) {
return new AstroError({
...AstroErrorData.UnavailableAstroGlobal,
message: AstroErrorData.UnavailableAstroGlobal.message(name),
});
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does createError() do?
createError() is a function in the astro codebase, defined in packages/astro/src/runtime/server/astro-global.ts.
Where is createError() defined?
createError() is defined in packages/astro/src/runtime/server/astro-global.ts at line 5.
What calls createError()?
createError() is called by 1 function(s): createAstro.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free