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

Function handleUncaughtError

packages/core/src/render3/instructions/shared.ts:726–738  ·  view source on GitHub ↗
(lView: LView, error: any)

Source from the content-addressed store, hash-verified

724
725/** Handles an error thrown in an LView. */
726export function handleUncaughtError(lView: LView, error: any): void {
727 const injector = lView[INJECTOR];
728 if (!injector) {
729 return;
730 }
731 let errorHandler: ((e: any) => void) | null;
732 try {
733 errorHandler = injector.get(INTERNAL_APPLICATION_ERROR_HANDLER, null);
734 } catch {
735 errorHandler = null;
736 }
737 errorHandler?.(error);
738}
739
740/**
741 * Set all directive inputs with the specific public name on the node.

Callers 3

renderDeferBlockStateFunction · 0.90
triggerResourceLoadingFunction · 0.90

Calls 2

getMethod · 0.65
errorHandlerFunction · 0.50

Tested by

no test coverage detected