catchError in RxJS — a practical guide to RxJS catchError with clear examples you can reuse in real projects.
Angular Tutorial Series (66/119). Prefer one article? Read the complete Angular tutorial.
Short description
Re-throw with throwError when the UI must show failure.
catchError
pipe(
catchError((err) => {
this.notify.error('Load failed');
return of([]);
})
)