Decide on format for error handling #198
Replies: 5 comments
-
|
I based error messages on the format I found in |
Beta Was this translation helpful? Give feedback.
-
|
Useful / relevant posts & articles:
|
Beta Was this translation helpful? Give feedback.
-
|
Random thought: might be worth creating an Edit: conceivably could be matched on type as well (not sure if this is a good idea or an Elixir antipattern): |
Beta Was this translation helpful? Give feedback.
-
|
So, here's my current idea:
|
Beta Was this translation helpful? Give feedback.
-
|
TLDR: Basically, I think we need to handle cases where the error format does not match our chosen format and we do not control the format that is given to us (as in the invalid email example, above). This handling needs to be centralized and clear. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
As noticed in #120, we currently have different shapes for the errors in the application:
{:error, message, detail}{:error, %{message: message, detail: detail}This issue is meant to start the discussion around how we structure errors, abstractions on error handling and so on...
Beta Was this translation helpful? Give feedback.
All reactions