# Help handling URLloader error

**URL:** <https://forum.kirupa.com/t/help-handling-urlloader-error/289497>\
**Category:** flash\
**Created:** [May 31, 2009, 6:45pm UTC](https://forum.kirupa.com/t/help-handling-urlloader-error/289497 "2009-05-31T18:45:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaedo](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@Shaedo](https://forum.kirupa.com/u/Shaedo)\
**Post date:** [May 31, 2009, 6:45pm UTC](https://forum.kirupa.com/t/help-handling-urlloader-error/289497/1 "2009-05-31T18:45:31Z")

</div>

Hi I am trying to implement some error handling into my code.  
[URL=“[http://www.kirupa.com/forum/showthread.php?p=1957523](http://www.kirupa.com/forum/showthread.php?p=1957523)”]  
I am still getting the error:  
Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

I want to be able to feed invalid URLs into the loader without it causeing a problem.

Here is the relevant (?) extract of my code:

```auto
 
 {
  var image_url = kanaImages[imageCount].@IMAGE;
  image_loader = new Loader();
  image_loader.addEventListener(IOErrorEvent.IO_ERROR, catchIOError);
  image_loader.load(new URLRequest(image_url));
  image_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
 }
 
 private function catchIOError(event:IOErrorEvent)
 {
  trace("Error caught: "+event.type); // this never gets triggered.
 }

```

This works fine with valid URLs.

I was trying to do as Senocular describes here:  
[[COLOR=#800080]http://www.kirupa.com/forum/showthread.php?p=1957523[/COLOR]](http://www.kirupa.com/forum/showthread.php?p=1957523)

Thank you for taking the time to look at this problem!

S.
