# Showing an error in the Ignition Designer

**URL:** <https://forum.inductiveautomation.com/t/showing-an-error-in-the-ignition-designer/28092>\
**Category:** Module Development\
**Created:** [September 7, 2019, 11:18pm UTC](https://forum.inductiveautomation.com/t/showing-an-error-in-the-ignition-designer/28092 "2019-09-07T23:18:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fady.machaalani](https://avatars.discourse-cdn.com/v4/letter/f/aca169/32.png) [@fady.machaalani](https://forum.inductiveautomation.com/u/fady.machaalani)\
**Post date:** [September 7, 2019, 11:18pm UTC](https://forum.inductiveautomation.com/t/showing-an-error-in-the-ignition-designer/28092/1 "2019-09-07T23:18:05Z")

</div>

How can I show an error to the user in the Ignition Designer?

Do I need to have a designer context hook, or does having just the gateway hook work?

I have tried using this line:

`ErrorUtil.showError("This is an error message");`

but that seems to not work and it crashes my module as opposed to actually popping up an error message to the user. I am looking to show something along the lines of this photo:

 ![error](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/1628ff0fd82ed03b2e4a85d1c66a084b5bd30e90.png)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 8, 2019, 12:33am UTC](https://forum.inductiveautomation.com/t/showing-an-error-in-the-ignition-designer/28092/2 "2019-09-08T00:33:43Z")

</div>

You will need to send a message from the gateway to the designer, where you’d registered a push listener. The push listener, on the foreground thread, can throw a deliberate exception with a “caused by” passed from the gateway.

---

<div class="post-metadata">

**Author:** ![fady.machaalani](https://avatars.discourse-cdn.com/v4/letter/f/aca169/32.png) [@fady.machaalani](https://forum.inductiveautomation.com/u/fady.machaalani)\
**Post date:** [September 8, 2019, 12:45am UTC](https://forum.inductiveautomation.com/t/showing-an-error-in-the-ignition-designer/28092/3 "2019-09-08T00:45:16Z")

</div>

Can you be a big more specific?  
Maybe some code or something to show how this is done?

Where does the push listener get registered? In the gateway hook?

How do you use the push listener?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 8, 2019, 12:32pm UTC](https://forum.inductiveautomation.com/t/showing-an-error-in-the-ignition-designer/28092/4 "2019-09-08T12:32:40Z")

</div>

> [@fady.machaalani](#):
>
> Can you be a big more specific?

[https://docs.inductiveautomation.com/pages/viewpage.action?pageId=4065866](https://docs.inductiveautomation.com/pages/viewpage.action?pageId=4065866)

I don't have any code I can share, sorry. But the documented interface is fairly simple. You just subclass the FIlteredPushNotification class, override the receive() method with your handler, and in this case, override the dispatchOnEDT() method.

> [@fady.machaalani](#):
>
> Where does the push listener get registered?

I already answered this.

> [@pturmel](#):
>
> the designer, where you’d registered a push listener.
