# Can't catch io error

**URL:** <https://forum.kirupa.com/t/cant-catch-io-error/321826>\
**Category:** flash\
**Created:** [May 2, 2011, 4:46pm UTC](https://forum.kirupa.com/t/cant-catch-io-error/321826 "2011-05-02T16:46:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cakepizza](https://avatars.discourse-cdn.com/v4/letter/c/45deac/32.png) [@cakepizza](https://forum.kirupa.com/u/cakepizza)\
**Post date:** [May 2, 2011, 4:46pm UTC](https://forum.kirupa.com/t/cant-catch-io-error/321826/1 "2011-05-02T16:46:21Z")

</div>

Empty flash 10 project with just this code on the first frame.

```auto
var path="incorrectPath";
var myLoader:Loader = new Loader();
myLoader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
function errorHandler(e:IOErrorEvent):void {trace("can't load"+path);}
try{myLoader.load(new URLRequest(path));}catch(e:*){trace("can't load"+path);}

stop();

```

Everywhere I look this seems to be exactly everything I am supposed to do to catch the error, but I keep getting. “Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.”  
It just refuses to catch!

any ideas? Thanks!
