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

Function encapsulateResourceError

packages/core/src/resource/resource.ts:601–607  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

599}
600
601export function encapsulateResourceError(error: unknown): Error {
602 if (isErrorLike(error)) {
603 return error;
604 }
605
606 return new ResourceWrappedError(error);
607}
608
609export function isErrorLike(error: unknown): error is Error {
610 return (

Callers 5

rxResourceFunction · 0.90
constructorMethod · 0.85
loadEffectMethod · 0.85
getLoaderFunction · 0.85
constructorMethod · 0.85

Calls 1

isErrorLikeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…