views:

282

answers:

2

Hi,

I've been given a Flex application which made use of a RESTFUL service.

I've managed to create a SQLite DB which stored data from the service and now I would like the application to be able to run offline and make use of the data existing in it's local DB. This works fine the only problem is that the httpService object throws a fault when it cannot connect.

If I don't provide a method to handle the fault event then it is displayed in an error window. If I provide a blank method to handle the fault then it is still displayed in an error window.

How can I get it to stop displaying this error Window?

Regards, Craig

A: 

Check for a network connection before making the httpservice request.

Flex 3 - Adobe Flex 3 Help - Network Connectivity

That way, when an exception occurs it's really an unexpected behavior instead of something that could be regular program usage.

Justin Niessner
As good an idea as that is... I was looking for some help to understand the error handling in Flex...
Craig Warren
A: 

Never Mind... Problem was that something else was generating the same fault...

Craig Warren