|
Mailing Lists
|
Home /
Groups /
Adobe Flex
fault faultCode List
-----BEGIN PGP SIGNED MESSAGE-----Graham Pearson 11/12/08 10:23 A I don't know if I am totally following you-- usually I don't bother usersBrad Wood 11/12/08 11:00 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 -----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----- 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 ----- -----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 ----- 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.
|
May 25, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||