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

Function _throwError

packages/forms/src/directives/shared.ts:343–346  ·  view source on GitHub ↗
(dir: AbstractControlDirective, message: string)

Source from the content-addressed store, hash-verified

341}
342
343function _throwError(dir: AbstractControlDirective, message: string): void {
344 const messageEnd = _describeControlLocation(dir);
345 throw new Error(`${message} ${messageEnd}`);
346}
347
348function _describeControlLocation(dir: AbstractControlDirective): string {
349 const path = dir.path;

Callers 4

setUpFormContainerFunction · 0.85
_noControlErrorFunction · 0.85
selectValueAccessorFunction · 0.85

Calls 1

_describeControlLocationFunction · 0.85

Tested by

no test coverage detected