# Catching exception in webdev doPost

**URL:** <https://forum.inductiveautomation.com/t/catching-exception-in-webdev-dopost/77318>\
**Category:** Ignition\
**Tags:** scripting, ignition81\
**Created:** [August 2, 2023, 9:15pm UTC](https://forum.inductiveautomation.com/t/catching-exception-in-webdev-dopost/77318 "2023-08-02T21:15:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [August 2, 2023, 9:24pm UTC](https://forum.inductiveautomation.com/t/catching-exception-in-webdev-dopost/77318/2 "2023-08-02T21:24:06Z")

</div>

The exception being thrown might be a Java exception, rather than a Python exception?

> [@Retrieving RAISERROR from Stored Procedure](https://forum.inductiveautomation.com/t/retrieving-raiserror-from-stored-procedure/16971/4):
>
> Use separate catch clauses. One for java exceptions, one for python: import java.lang.Exception try: call = system.db.createSProcCall(procedureName='save') call.registerInParam('name', system.db.VARCHAR, None) system.db.execSProcCall(call) except java.lang.Exception, e: /\* Print exceptions originating in Java \*/ print e except Exception, e: /\* Print other exceptions \*/ print e

---

_[View the full topic](https://forum.inductiveautomation.com/t/catching-exception-in-webdev-dopost/77318)._
