Josh W Lewis

Josh W Lewis

/

Essays

/

Categories

/

plug

Error Handling in Elixir with Plug.Exception

By Josh on May 30, 2016

I found a hidden gem last week: Plug’s exception protocol. It gives you a concise pattern for rendering errors to users in an informative way.

For example, consider some team dashboard that you want to limit access to in your Phoenix application....