Raising an Exception
Explore how to raise exceptions using the raise function in Elixir and handle errors with try and rescue clauses. Understand the philosophy behind exception handling in Elixir and how supervisors manage process failures to localize errors.
We'll cover the following...
We'll cover the following...
Elixir (like Erlang) takes the view that errors should normally be fatal to the processes in which they occur. A typical Elixir application’s design involves many processes, which means the effects of an error will be localized. A supervisor will detect ...