5min chapter

Elixir Mix cover image

Reusable Ecto Code with Mika Kalathil - EMx 164

Elixir Mix

CHAPTER

Using Unix Error Wrappers in Your System

So what it looks like is really just wrapping errors that come out of even like foreign systems for example so most of the times you can because the front end is also relying on these errors. So that includes any errors that you're getting from third parties that you might be calling one of the downsides to that is you might not know every single error type but that can be handled by just using say an internal server error for ones that you don't know. I've personally used it most recently when developing integrations with Stripe because Stripe has a ton of different types of errors and most of them we can handlebut however there's just like a few that come up that we're not

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode