# My test case still shows "Unhandled exception" even if I try-catch-ed it?

**URL:** <https://forum.canton.network/t/my-test-case-still-shows-unhandled-exception-even-if-i-try-catch-ed-it/6192>\
**Category:** App Development\
**Tags:** daml-script, daml, test\
**Created:** [March 1, 2023, 3:38am UTC](https://forum.canton.network/t/my-test-case-still-shows-unhandled-exception-even-if-i-try-catch-ed-it/6192 "2023-03-01T03:38:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![stefanobaghino-da](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/stefanobaghino-da/32/7057_2.png) [@stefanobaghino-da](https://forum.canton.network/u/stefanobaghino-da)\
**Post date:** [March 1, 2023, 6:55am UTC](https://forum.canton.network/t/my-test-case-still-shows-unhandled-exception-even-if-i-try-catch-ed-it/6192/2 "2023-03-01T06:55:02Z")

</div>

You might want to have a look [here](https://discuss.daml.com/t/choice-exercise-error-not-caught-by-try-catch-in-daml-script/6130/4).

tl;dr `try`/`catch` is not currently supported at the top level in Daml Script and Daml Triggers, if you want to catch an error you have to do so as part of a transaction.

---

_[View the full topic](https://forum.canton.network/t/my-test-case-still-shows-unhandled-exception-even-if-i-try-catch-ed-it/6192)._
