I want to create some sort of global error handling in my Flex application. What is the best approach for this?
Asked
Active
Viewed 2,385 times
2
-
Possible duplicate - http://stackoverflow.com/questions/101532/how-to-catch-all-exceptions-in-flex – Richard Szalay Oct 06 '10 at 10:53
3 Answers
4
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

GEOCHET
- 21,119
- 15
- 74
- 98

James Ward
- 29,283
- 9
- 49
- 85
2
Global error handling is now available in Flash Player 10.1 (released June 2010). For details on how to use it, see

Borek Bernard
- 50,745
- 59
- 165
- 240
0
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
- 6,832
- 11
- 38
- 50