# Error not catching

**URL:** <https://forum.kirupa.com/t/error-not-catching/269378>\
**Category:** Uncategorized\
**Created:** [August 26, 2008, 7:32pm UTC](https://forum.kirupa.com/t/error-not-catching/269378 "2008-08-26T19:32:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GrndMasterFlash](https://avatars.discourse-cdn.com/v4/letter/g/71c47a/32.png) [@GrndMasterFlash](https://forum.kirupa.com/u/GrndMasterFlash)\
**Post date:** [August 26, 2008, 7:32pm UTC](https://forum.kirupa.com/t/error-not-catching/269378/1 "2008-08-26T19:32:29Z")

</div>

I have been working on an image display class, and everything is working, but now im trying to safe guard it  
so naturally when the image changes instead of just loading the next URL, i want to make sure the path is good  
and if not catch the error so i can move to the next image.  
but for some reason my catch is not intervening when it should,  
i figured a new set of eyes looking at this could tell me why…

```auto

        protected function flipPik(te:TimerEvent)
        {
            var loadThis:String=new String;
            var pikPath:URLRequest;
            curNode++;
            curNode < pikNamez.length?true:curNode=0;
            loadThis=imgFolder + "" + pikNamez[curNode];
            try{
                pikPath = new URLRequest(loadThis);
            }catch (error:IOError){
                trace("caugth error = "+error);
            }finally{
                pikLoader.load(pikPath);
            }
        }
        

```

```
    any ideas?
```
