Home / File/ shared-errors.js — svelte Source File

shared-errors.js — svelte Source File

Architecture documentation for shared-errors.js, a javascript file in the svelte codebase. 1 imports, 0 dependents.

File javascript BuildSystem QualityControl 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  5e37283f_644e_1fff_3eb7_ec6746080e40["shared-errors.js"]
  c9866d91_a204_fa55_a9e3_6bcc6aaaec1e["esm-env"]
  5e37283f_644e_1fff_3eb7_ec6746080e40 --> c9866d91_a204_fa55_a9e3_6bcc6aaaec1e
  style 5e37283f_644e_1fff_3eb7_ec6746080e40 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { DEV } from 'esm-env';

/**
 * MESSAGE
 * @param {string} PARAMETER
 * @returns {never}
 */
export function CODE(PARAMETER) {
	if (DEV) {
		const error = new Error(`${'CODE'}\n${MESSAGE}\nhttps://svelte.dev/e/${'CODE'}`);
		error.name = 'Svelte error';
		throw error;
	} else {
		throw new Error(`https://svelte.dev/e/${'CODE'}`);
	}
}

Domain

Subdomains

Functions

Dependencies

  • esm-env

Frequently Asked Questions

What does shared-errors.js do?
shared-errors.js is a source file in the svelte codebase, written in javascript. It belongs to the BuildSystem domain, QualityControl subdomain.
What functions are defined in shared-errors.js?
shared-errors.js defines 1 function(s): CODE.
What does shared-errors.js depend on?
shared-errors.js imports 1 module(s): esm-env.
Where is shared-errors.js in the architecture?
shared-errors.js is located at packages/svelte/scripts/process-messages/templates/shared-errors.js (domain: BuildSystem, subdomain: QualityControl, directory: packages/svelte/scripts/process-messages/templates).

Analyze Your Own Codebase

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

Try Supermodel Free