House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  Adobe Flex

fault faultCode List

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
-----BEGIN PGP SIGNED MESSAGE-----
Graham Pearson
11/12/08 10:23 A
-----BEGIN PGP SIGNED MESSAGE-----
Graham Pearson
11/12/08 11:13 A
I guess I'd start here then:
brad
11/12/08 12:08 P
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Graham Pearson
11/12/2008 10:23 AM

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 In my Flex/Air application for www.weareclosedtoday.com, I have Alert Boxes at anytime something goes wrong with the Remote Calls which just displays event.fault.faultCode and event.fault.faultString. In my thought process, I am wanting to create custom error messages for various types of errors but not knowing what the  codes might be makes it hard to create the screen to display the error message. Ideas? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJGvSR3GqPAgBSy90RAuIkAJ9h0Rmq7Vg2vGPawZbeRmfqMC2ysACghl8/ ERK37LMeEjFSsqiiDVCPTNM= =E5uQ -----END PGP SIGNATURE-----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Brad Wood
11/12/2008 11:00 AM

I don't know if I am totally following you-- usually I don't bother users with technical details about the error.  They probably don't care about the database, or TCP socket, or other technical details.  I just say at most, "There was a problem retrieving subscription data from the server", not "The ODBC driver reported a connection timeout error 34903". If you want to know all the possible errors that Flash/Flex/Air can throw- Adobe has all the error codes documented in their site.  I'm not sure if the event.fault.faultCode can also pass through native error codes from your app server or not. ~Brad ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Graham Pearson
11/12/2008 11:13 AM

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 My thought was to match up what the faultCode comes to me as and give them a plain English version of the message. In my application, if the computer does not have an internet connection for some reason, it will through an HTTP Failed which I translate into This computer is unable to access the Internet for some reason, please check your internet connection or contact your Information Technology Department for further assistance. Brad Wood wrote: > I don't know if I am totally following you-- usually I don't bother users > with technical details about the error.  They probably don't care about the > database, or TCP socket, or other technical details.  I just say at most, > "There was a problem retrieving subscription data from the server", not "The > ODBC driver reported a connection timeout error 34903". > > If you want to know all the possible errors that Flash/Flex/Air can throw- > Adobe has all the error codes documented in their site.  I'm not sure if the > event.fault.faultCode can also pass through native error codes from your app ----- Excess quoted text cut - see Original Post for more -----

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
brad
11/12/2008 12:08 PM

I guess I'd start here then: http://livedocs.adobe.com/flex/3/langref/runtimeErrors.html It's a pretty big list.  You might do better if you just experiment and create these errors (like unplug your Ethernet cable and see what error is thrown) and keep a list of them.   I don't know that error codes or messages are guaranteed to remain the same between versions though.   What might be better would be to wrap certain blocks of code in a try catch with a message in the catch that is specific to the block of code being tried.  For instance, if the RemoteObject call fails you can list their Internet connection or the remote server as having problems. ~Brad -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 My thought was to match up what the faultCode comes to me as and give them a plain English version of the message. In my application, if the computer does not have an internet connection for some reason, it will through an HTTP Failed which I translate into This computer is unable to access the Internet for some reason, please check your internet connection or contact your Information Technology Department for further assistance.


<< Previous Thread Today's Threads Next Thread >>

Search flex

May 25, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference