# Using Ash.Query.add\_error()

**URL:** <https://forum.elixirforum.com/t/using-ash-query-add-error/67948>\
**Category:** Questions\
**Tags:** ash, ash-graphql, ash-query\
**Created:** [December 7, 2024, 6:44pm UTC](https://forum.elixirforum.com/t/using-ash-query-add-error/67948 "2024-12-07T18:44:36Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![zachdaniel](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/zachdaniel/32/31980_2.png) [@zachdaniel](https://forum.elixirforum.com/u/zachdaniel)\
**Post date:** [December 7, 2024, 10:42pm UTC](https://forum.elixirforum.com/t/using-ash-query-add-error/67948/4 "2024-12-07T22:42:01Z")

</div>

Did some mild reconstruction of the relevant docs and type specs. The `add_error` functions point to the error handling guide, and more examples of returning errors have been added to that guide as well. Finally, the last section links to the relevant protocols that must be implemented to show custom errors in APIs.

---

_[View the full topic](https://forum.elixirforum.com/t/using-ash-query-add-error/67948)._
