constructor() — astro Function Reference
Architecture documentation for the constructor() function in errors.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 68591a9f_b338_1935_143c_aa116ae1b761["constructor()"] 9b197c90_9ea4_5f56_4cea_3b2612e63446["AstroError"] 68591a9f_b338_1935_143c_aa116ae1b761 -->|defined in| 9b197c90_9ea4_5f56_4cea_3b2612e63446 d2e8002a_5820_b195_5e84_7e84fc089e35["constructor()"] d2e8002a_5820_b195_5e84_7e84fc089e35 -->|calls| 68591a9f_b338_1935_143c_aa116ae1b761 fed4db4f_bbc6_25ee_5ab6_6d9c0f80241a["constructor()"] fed4db4f_bbc6_25ee_5ab6_6d9c0f80241a -->|calls| 68591a9f_b338_1935_143c_aa116ae1b761 68209d7c_914e_c7b5_21e6_f1b2ffd2e39b["constructor()"] 68209d7c_914e_c7b5_21e6_f1b2ffd2e39b -->|calls| 68591a9f_b338_1935_143c_aa116ae1b761 d2e8002a_5820_b195_5e84_7e84fc089e35["constructor()"] 68591a9f_b338_1935_143c_aa116ae1b761 -->|calls| d2e8002a_5820_b195_5e84_7e84fc089e35 style 68591a9f_b338_1935_143c_aa116ae1b761 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/core/errors/errors.ts lines 41–54
constructor(props: ErrorProperties, options?: ErrorOptions) {
const { name, title, message, stack, location, hint, frame } = props;
super(message, options);
this.title = title;
this.name = name;
if (message) this.message = message;
// Only set this if we actually have a stack passed, otherwise uses Error's
this.stack = stack ? stack : this.stack;
this.loc = location;
this.hint = hint;
this.frame = frame;
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does constructor() do?
constructor() is a function in the astro codebase, defined in packages/astro/src/core/errors/errors.ts.
Where is constructor() defined?
constructor() is defined in packages/astro/src/core/errors/errors.ts at line 41.
What does constructor() call?
constructor() calls 1 function(s): constructor.
What calls constructor()?
constructor() is called by 3 function(s): constructor, constructor, constructor.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free