MCPcopy Create free account
hub / github.com/angular/angular / formatRuntimeErrorCode

Function formatRuntimeErrorCode

packages/core/src/errors.ts:188–193  ·  view source on GitHub ↗
(code: T)

Source from the content-addressed store, hash-verified

186}
187
188export function formatRuntimeErrorCode<T extends number = RuntimeErrorCode>(code: T): string {
189 // Error code might be a negative number, which is a special marker that instructs the logic to
190 // generate a link to the error details page on angular.io.
191 // We also prepend `0` to non-compile-time errors.
192 return `NG0${Math.abs(code)}`;
193}
194
195/**
196 * Called to format a runtime error.

Callers 2

defer_spec.tsFile · 0.90
formatRuntimeErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected