# Catching a tag write timeout exception

**URL:** <https://forum.inductiveautomation.com/t/catching-a-tag-write-timeout-exception/49813>\
**Category:** Ignition\
**Created:** [August 11, 2021, 2:48pm UTC](https://forum.inductiveautomation.com/t/catching-a-tag-write-timeout-exception/49813 "2021-08-11T14:48:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [August 11, 2021, 4:09pm UTC](https://forum.inductiveautomation.com/t/catching-a-tag-write-timeout-exception/49813/2 "2021-08-11T16:09:12Z")

</div>

Generally speaking `try/except` will only catch python errors. To catch java errors in Ignition, you have to import them, for instance to catch an error that the database throws you would need

```auto
import java.lang.Exception
try:
   system.db.runUpdateQuery("somequery")
except Exception, e:
## catches python errors
except java.lang.Exception, e:
## Catches database thrown errors

```

Looking at your stack trace it looks like ultimately you get `java.util.concurrent.TimeoutException` so that is the exception you would need to import and catch specifically. It doesn’t look like you get much info back (null) but at least catching this specifically you could start logging those instances and perhaps some sort of pattern that is causing it.

---

_[View the full topic](https://forum.inductiveautomation.com/t/catching-a-tag-write-timeout-exception/49813)._
