# Error manangment during eam.sendRequest

**URL:** <https://forum.inductiveautomation.com/t/error-manangment-during-eam-sendrequest/87488>\
**Category:** Ignition\
**Created:** [March 18, 2024, 2:17pm UTC](https://forum.inductiveautomation.com/t/error-manangment-during-eam-sendrequest/87488 "2024-03-18T14:17:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 18, 2024, 2:21pm UTC](https://forum.inductiveautomation.com/t/error-manangment-during-eam-sendrequest/87488/2 "2024-03-18T14:21:25Z")

</div>

This may be a case where you need to catch java.lang.Exception as well:

> [@Failing to catch exceptions from smart card reader](https://forum.inductiveautomation.com/t/failing-to-catch-exceptions-from-smart-card-reader/19819/6):
>
> Set up two clauses, like so:
> 
> ```auto
> # Important! Do not use "from java.lang import Exception", as that will
> # hide access to jython's Exception class.
> import java.lang.Exception
> 
> def something():
> try:
> # do something
> pass
> except java.lang.Exception, e:
> # Handle java exceptions
> # follow e.cause, e.cause.cause, .... to examine nested exceptions
> pass
> except Exception, e:
> # Handle jython exceptions
> pass
> 
> ```

---

_[View the full topic](https://forum.inductiveautomation.com/t/error-manangment-during-eam-sendrequest/87488)._
