MCPcopy Index your code
hub / github.com/angular/angular / handleUncaughtError

Function handleUncaughtError

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

Source from the content-addressed store, hash-verified

705
706/** Handles an error thrown in an LView. */
707export function handleUncaughtError(lView: LView, error: any): void {
708 const injector = lView[INJECTOR];
709 if (!injector) {
710 return;
711 }
712 let errorHandler: ((e: any) => void) | null;
713 try {
714 errorHandler = injector.get(INTERNAL_APPLICATION_ERROR_HANDLER, null);
715 } catch {
716 errorHandler = null;
717 }
718 errorHandler?.(error);
719}
720
721/**
722 * 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…