# Try/catch simple question

**URL:** https://forum.kirupa.com/t/try-catch-simple-question/190846
**Category:** Uncategorized
**Created:** [June 15, 2006, 2:26am UTC](https://forum.kirupa.com/t/try-catch-simple-question/190846 "2006-06-15T02:26:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![marcusjw](https://avatars.discourse-cdn.com/v4/letter/m/7ba0ec/32.png) [@marcusjw](https://forum.kirupa.com/u/marcusjw)
#### Post date: [June 15, 2006, 2:26am UTC](https://forum.kirupa.com/t/try-catch-simple-question/190846/1 "2006-06-15T02:26:07Z")

</div>

Hi,

Can you pick up an undefined error with a catch statement? I have the code below, but it doesn’t seem to be handling the error:

```auto

try {
    test_txt.tedxt = "testing";
}
catch (e) {
    trace("caught error");
}

```

The error is being caught, but not by my catch block.

thanks,  
Marcus.
