Andre Lopes
May 2, 2022

Yeap, that is true :)

Thanks for the input.

The focus here was just to give an example on how to better handle cancelling an async request, and display some different error once this exception is caught so we could prove that it is how it work and you should catch the correct exception and treat it.

Maybe this exception handling is being handled somewhere else, like a global exception handler, and then the dev needs to throw it to not lose track of the context :D

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

Written by Andre Lopes

Full-stack developer @ Tesla | Public Speaker | AWS | Terraform | Serverless | Gamer | Eternal Geek 🤓

No responses yet

Write a response