Quantcast
Channel: How do I handle custom errors, globally, in Phoenix? - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by tkowal for How do I handle custom errors, globally, in Phoenix?

The halt function doesn't actually provide any branching logic. It only sets conns private field halted to true. This makes sure that other plugs will not process it further, but rest of the action...

View Article



How do I handle custom errors, globally, in Phoenix?

I'm using a library in my application which regularly returns tuples of {:ok, value} or {:error, error}. In the cases where we assume there may be an error (such as a user input), we're handling those...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images