I want to create some sort of global error handling in my Flex application. What is the best approach for this?
+4
A:
Right now there isn't a way to do this. So please go vote for this feature request: http://bugs.adobe.com/jira/browse/FP-1499
James Ward
2009-04-30 13:24:46
thanks, i will!
combi001
2009-05-06 08:22:21
A:
James is right... you could start by routing exceptions to one static util like below to make changes and debugging easier.
package
{
import mx.rpc.Fault;
public class FlexException
{
public function FlexException()
{
}
public static function faultHandler(fault:Fault):void{
//Do stuff
}
}
}
Brandon
2009-05-02 01:26:42
+2
A:
Global error handling is now available in Flash Player 10.1 (released June 2010). For details on how to use it, see
Borek
2010-06-23 00:54:44