Vintage Cellphone [Nerves Meetup] TypedStructor is a library for defining structs with types effortlessly

How to report Postgres custom errors in Ecto Changeset

Capture a Postgres (or any other RDBMS) custom error in the Ecto.Changeset without raising an exception.

This enables you to handle all the errors in one place without braking your aesthetic Elixir functional code with try/rescue constructs.

https://dev.to/utopos/how-to-report-postgres-custom-errors-in-ecto-changeset-54m