WeCodeThings Library
Library of code bits
Glossary    Contact Us
Need a web designer? visit WeCodeThings.Com for more details
Search  
   
Browse by Category

WeCodeThings Library .: Flex .: Flex 3 Fault Message FaultString FaultCode FaultDetail Handler Flex 3



Flex 3 Fault Message FaultString FaultCode FaultDetail Handler Flex 3

They are plenty ways to display the fault event.  Here are some different ways to display your error in Flex 3. The first one seems to be the most complete for me, it returns where the error occured and the reason why if failed. 

private function fault(evt:FaultEvent):void {

 

    Alert.show(evt.fault.faultString, evt.fault.faultCode);              

}

Another way to display the error message is to use the FaultString as the title and the FaultDetail as the message.

private function fault(evt:FaultEvent):void {

    Alert.show(evt.fault.faultString, evt.fault.faultDetail);                

}

This example displays all the error messages in a jumbled mess within the alertbox, but some people might like it.

private function fault(evt:FaultEvent):void {

    Alert.show(evt.fault.message);               

}

 

 



How helpful was this article to you?

Related Articles

article Create Flex 3 Remote Object ColdFusion with Result and Fault Handlers for Flex 3
More about creating a remote object and...

(No rating)  4-28-2009    Views: 1431   
article Flex 3 Get Data from a CFC ColdFusion using bindable result handler function
More about creating a remote object and...

(No rating)  4-21-2009    Views: 894   
article Flex 3 Create Remote Object Destination ColdFusion using ActionScript And MXML Flex 3
You can read more about Flex 3 and Remote...

(No rating)  4-30-2009    Views: 1159   

User Comments

Add Comment
No comments have been posted.




.: Powered by Lore .:Code by WeCodeThings Website Design and Development