<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-handle-and-catch-errors-in-rxjs-rw72eeglm" -->

---
title: How to handle and catch errors in Rxjs | daily.dev
description: A beginner-friendly guide to handling errors in RxJS observables. Explains why try-catch doesn't work with observable streams and introduces three RxJS...
canonical: https://daily.dev/posts/how-to-handle-and-catch-errors-in-rxjs-rw72eeglm
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to handle and catch errors in Rxjs | daily.dev
og:description: A beginner-friendly guide to handling errors in RxJS observables. Explains why try-catch doesn't work with observable streams and introduces three RxJS...
og:url: https://daily.dev/posts/how-to-handle-and-catch-errors-in-rxjs-rw72eeglm
og:image: https://api.daily.dev/og/posts/rW72EegLM.png
og:image:alt: How to handle and catch errors in Rxjs
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to handle and catch errors in Rxjs

**[Playful Programming](https://daily.dev/sources/playfulprogramming)** · [@danywalls](https://daily.dev/danywalls) · 4 min read · 0 upvotes · 0 comments

## Summary

A beginner-friendly guide to handling errors in RxJS observables. Explains why try-catch doesn't work with observable streams and introduces three RxJS approaches: catchError (returns a fallback observable), throwError (re-throws a custom error to the subscriber's error callback), and EMPTY (silently swallows the error without emitting anything). Examples use Angular's HttpClient but the patterns apply to any observable stream.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://playfulprogramming.com/posts/how-to-handle-and-catch-errors-in-rxjs-3kei>

## Similar posts on daily.dev

- [Medium](https://daily.dev/posts/medium-iaeoxktvu) · Medium · 0 upvotes · 0 comments
- [Angular Signals vs RxJS: Should You Replace RxJS in Real Apps?](https://daily.dev/posts/angular-signals-vs-rxjs-should-you-replace-rxjs-in-real-apps--nfjjyjl7v) · Syncfusion · 5 upvotes · 0 comments
- [Signal-Driven Error Monitoring: Detecting and Debugging Reactive Failures in Angular](https://daily.dev/posts/signal-driven-error-monitoring-detecting-and-debugging-reactive-failures-in-angular-r0d0mo3v3) · AppSignal · 1 upvotes · 0 comments
- [Error Handling and Hiding Errors is Not the Same Thing](https://daily.dev/posts/error-handling-and-hiding-errors-is-not-the-same-thing-wuqe6lugx) · Atomic Spin · 1 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#angular](https://daily.dev/tags/angular), [#rxjs](https://daily.dev/tags/rxjs)

[View this post on daily.dev](https://daily.dev/posts/how-to-handle-and-catch-errors-in-rxjs-rw72eeglm)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to handle and catch errors in Rxjs","url":"https://daily.dev/posts/how-to-handle-and-catch-errors-in-rxjs-rw72eeglm","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-handle-and-catch-errors-in-rxjs-rw72eeglm"},"datePublished":"2026-03-16T21:48:41.505Z","dateModified":"2026-03-17T18:02:56.320Z","description":"A beginner-friendly guide to handling errors in RxJS observables. Explains why try-catch doesn't work with observable streams and introduces three RxJS...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ae1f1d2cbbf9a3310d2ca142ddd07276?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ae1f1d2cbbf9a3310d2ca142ddd07276?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Playful Programming","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Dany Paredes","url":"https://daily.dev/danywalls","image":"https://avatars.githubusercontent.com/u/5494535?v=4","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":80}},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-handle-and-catch-errors-in-rxjs-rw72eeglm","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"javascript,angular,rxjs","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Playful Programming","item":"https://daily.dev/sources/playfulprogramming"},{"@type":"ListItem","position":3,"name":"How to handle and catch errors in Rxjs"}]}
```

