# Getting the Error Messages Dialog Text Through Script

**URL:** <https://forum.inductiveautomation.com/t/getting-the-error-messages-dialog-text-through-script/59983>\
**Category:** Ignition\
**Tags:** ignition79, scripting\
**Created:** [May 24, 2022, 8:42pm UTC](https://forum.inductiveautomation.com/t/getting-the-error-messages-dialog-text-through-script/59983 "2022-05-24T20:42:01Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 25, 2022, 3:33pm UTC](https://forum.inductiveautomation.com/t/getting-the-error-messages-dialog-text-through-script/59983/4 "2022-05-25T15:33:27Z")

</div>

```python
from com.inductiveautomation.ignition.client.util.gui import ErrorUtil
from org.apache.commons.lang3.reflect import FieldUtils

errorPanel = FieldUtils.readStaticField(ErrorUtil, "errorPanel", True)
warningPanel = FieldUtils.readStaticField(ErrorUtil, "warningPanel", True)
errors = FieldUtils.readField(errorPanel, "errors", True)
warnings = FieldUtils.readField(warningPanel, "errors", True)

for error in errors:
	print error.title
	print error.message
	print error.exception
	
for warning in warnings:
	print warning.title
	print warning.message
	print warning.exception

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/getting-the-error-messages-dialog-text-through-script/59983)._
