# How to report Postgres custom errors in Ecto Changeset

**URL:** <https://forum.devtalk.com/t/how-to-report-postgres-custom-errors-in-ecto-changeset/161343>\
**Category:** Blogs/Articles/Talks/Podcasts\
**Tags:** ecto, elixir, blog-post\
**Created:** [8 July 2024 14:20 UTC](https://forum.devtalk.com/t/how-to-report-postgres-custom-errors-in-ecto-changeset/161343 "2024-07-08T14:20:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![quetz](https://forum.devtalk.com/user_avatar/forum.devtalk.com/quetz/32/6171_2.png) [@quetz](https://forum.devtalk.com/u/quetz)\
**Post date:** [8 July 2024 14:21 UTC](https://forum.devtalk.com/t/how-to-report-postgres-custom-errors-in-ecto-changeset/161343/1 "2024-07-08T14:21:00Z")

</div>

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.

> **[How to report Postgres custom errors in Ecto Changeset](https://dev.to/utopos/how-to-report-postgres-custom-errors-in-ecto-changeset-54m)**
>
> Sometimes you may find yourself in the need to capture a Postgres (or any other RDBMS) custom error...
