Greg Vaughn - Fumbling with Exceptions
You’ve heard of “Let it Crash” and that’s wise advice. Most of the time. Other times a custom exception might be a better choice. Let’s talk about what exceptions in Elixir truly are and how they work to gain some intuition for when they are the right tool to reach for. They can play very nicely alongside error tuples. Even if we never raise them. I’ll discuss a case in which I named an exception a “fumble” because it might be recoverable.
October 12, 2021