# Try catch == ioError?

**URL:** https://forum.kirupa.com/t/try-catch-ioerror/305708
**Category:** Uncategorized
**Created:** [March 2, 2010, 1:25pm UTC](https://forum.kirupa.com/t/try-catch-ioerror/305708 "2010-03-02T13:25:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![grandpaw\_broon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/grandpaw_broon/32/3985_2.png) [@grandpaw\_broon](https://forum.kirupa.com/u/grandpaw_broon)
#### Post date: [March 2, 2010, 1:25pm UTC](https://forum.kirupa.com/t/try-catch-ioerror/305708/1 "2010-03-02T13:25:56Z")

</div>

Hey guys,

I need to attempt to download a 1kb text file on startup to check if there is a connection. This is because of the environment.

I realised:

```php
//...
testLoader.addEventListener(IOErrorEvent.IO_ERROR,someErrorHandler)

```

or:

```php

try 
{
        //...
         testLoader.load(someURLRequest);
}
catch (e:Error)
{
          someErrorHandler();           
}

```

Can someone explain the difference between these? try or catch under a search shows nothing.

Cheers.
