Home / Function/ constructor() — astro Function Reference

constructor() — astro Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  16011807_cc3e_5eac_60e4_43f7c3e63fa4["constructor()"]
  b25f7aa2_e0f4_d431_a5e0_18397089a2ab["ActionError"]
  16011807_cc3e_5eac_60e4_43f7c3e63fa4 -->|defined in| b25f7aa2_e0f4_d431_a5e0_18397089a2ab
  2b53efcf_51d5_1fb6_63d8_a6dc49d2552b["constructor()"]
  2b53efcf_51d5_1fb6_63d8_a6dc49d2552b -->|calls| 16011807_cc3e_5eac_60e4_43f7c3e63fa4
  2b53efcf_51d5_1fb6_63d8_a6dc49d2552b["constructor()"]
  16011807_cc3e_5eac_60e4_43f7c3e63fa4 -->|calls| 2b53efcf_51d5_1fb6_63d8_a6dc49d2552b
  6df736de_70c1_5e69_b28d_376894783349["codeToStatus()"]
  16011807_cc3e_5eac_60e4_43f7c3e63fa4 -->|calls| 6df736de_70c1_5e69_b28d_376894783349
  style 16011807_cc3e_5eac_60e4_43f7c3e63fa4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/actions/runtime/client.ts lines 72–79

	constructor(params: { message?: string; code: ActionErrorCode; stack?: string }) {
		super(params.message);
		this.code = params.code;
		this.status = ActionError.codeToStatus(params.code);
		if (params.stack) {
			this.stack = params.stack;
		}
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does constructor() do?
constructor() is a function in the astro codebase, defined in packages/astro/src/actions/runtime/client.ts.
Where is constructor() defined?
constructor() is defined in packages/astro/src/actions/runtime/client.ts at line 72.
What does constructor() call?
constructor() calls 2 function(s): codeToStatus, 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