# How to pass UserError or UserWarning by RPC

**URL:** https://discuss.tryton.org/t/how-to-pass-usererror-or-userwarning-by-rpc/1876
**Category:** Developer
**Created:** [October 24, 2019, 1:20am UTC](https://discuss.tryton.org/t/how-to-pass-usererror-or-userwarning-by-rpc/1876 "2019-10-24T01:20:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![iehoshia](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/iehoshia/32/243_2.png) [@iehoshia](https://discuss.tryton.org/u/iehoshia)
#### Post date: [October 24, 2019, 1:20am UTC](https://discuss.tryton.org/t/how-to-pass-usererror-or-userwarning-by-rpc/1876/1 "2019-10-24T01:20:24Z")

</div>

Hi,

I’m trying to use RPC call on tryton, but the [docs](http://docs.tryton.org/projects/server/en/latest/ref/rpc.html#trytond.rpc.RPC.result) I find is a little short. So, I would like to know how to receive RPC call on a custom app. So, I’m not sure if I can receive UserError too.

Thanks in advance!

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [October 24, 2019, 8:04am UTC](https://discuss.tryton.org/t/how-to-pass-usererror-or-userwarning-by-rpc/1876/2 "2019-10-24T08:04:56Z")

</div>

The errors follows the RPC protocol so for XML-RPC it is a `fault` tag and for JSON-RPC the `error` key is filled.

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [November 23, 2019, 8:04am UTC](https://discuss.tryton.org/t/how-to-pass-usererror-or-userwarning-by-rpc/1876/3 "2019-11-23T08:04:57Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
