Error Handling in Swift Combine Framework šŸš§

Vadim Bulavin
1 min readSep 30, 2019

This is a cross-post from my blog, where you can find my other articles about advanced Swift development. Click here to directly open this article.

Letā€™s learn different ways of dealing with errors in Combine:

  • šŸ’„ Terminating with assertNoFailure
  • šŸ Replacing with catch and replaceError
  • šŸ” Giving a second chance with retry
  • šŸ¦‹ Transforming with mapError

The reason why I am not posting the full article here is that I donā€™t want Medium to sell my articles. I am giving all my content for free, without ads and subscriptions, and thatā€™s how itā€™s going to stay. As a reader youā€™ll also get better experience with code highlight and formulae.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Vadim Bulavin
Vadim Bulavin

Written by Vadim Bulavin

Senior iOS Software Engineer at Pluto TV. Creator of Yet Another Swift Blog https://www.vadimbulavin.com/. Coding for fun since 2008, for food since 2012.

No responses yet

Write a response