Leveraging Exceptions to handle errors in Elixir
Returning a tagged tuple {:ok, result} | {:error, reason} is the de facto practice to handle errors in Elixir, but that may not be enough for all situations and this article will explore how to leverage Exceptions to enrich errors and the benefits of doing so.
Check out at https://leandrocp.com.br/2020/08/leveraging-exceptions-to-handle-errors-in-elixir/
Read next Building Backdoor: web console for Elixir & Phoenix applications - Part #2