# How do I catch an inbuilt Exception in a Script?

**URL:** <https://forum.canton.network/t/how-do-i-catch-an-inbuilt-exception-in-a-script/2989>\
**Category:** App Development\
**Tags:** daml\
**Created:** [August 12, 2021, 7:55am UTC](https://forum.canton.network/t/how-do-i-catch-an-inbuilt-exception-in-a-script/2989 "2021-08-12T07:55:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [August 12, 2021, 8:02am UTC](https://forum.canton.network/t/how-do-i-catch-an-inbuilt-exception-in-a-script/2989/2 "2021-08-12T08:02:42Z")

</div>

Exceptions are not propagated across `submit`.

We could fix that reasonably easily in Daml Studio but they are not exposed over the Ledger API (beyond in the string error message) atm and one of the guiding principles of Daml Script is to keep the behavior in Daml Studio aligned with what you can do over the Ledger API.

---

_[View the full topic](https://forum.canton.network/t/how-do-i-catch-an-inbuilt-exception-in-a-script/2989)._
