error v0.1.0 Error View Source
Model domain and infrastructure errors as regular data.
Link to this section Summary
Functions
Return the map of detailed information supplied at Error creation.
Create a domain error, with a reason and optional details.
Create an infra error, with a reason and optional details.
Determine whether a given Error is a domain or infra error.
Map a function on the details map in an Error.
Return the reason the Error was created with.
Convert an Error to an Elixir map.
Link to this section Types
Link to this section Functions
Return the map of detailed information supplied at Error creation.
Create a domain error, with a reason and optional details.
Create an infra error, with a reason and optional details.
Determine whether a given Error is a domain or infra error.
Map a function on the details map in an Error.
Useful for adding extra details, modifying exisint ones, or removing them.
Return the reason the Error was created with.
Convert an Error to an Elixir map.