How to catch all exceptions in Flex?

Posted by Yaba on Stack Overflow See other posts from Stack Overflow or by Yaba
Published on 2008-09-19T12:43:59Z Indexed on 2010/03/23 13:53 UTC
Read the original article Hit count: 718

Filed under:
|
|

When I run a Flex application in the debug flash player I get an exception pop up as soon as something unexpected happened. However when a customer uses the application he does not use the debug flash player. In this case he does not get an exception pop up, but he UI is not working.

So for supportability reasons, I would like to catch any exception that can happen anywhere in the Flex UI and present an error message in a Flex internal popup. By using Java I would just encapsulate the whole UI code in a try/catch block, but with MXML applications in Flex I do not know, where I could perform such a general try/catch.

© Stack Overflow or respective owner

Related posts about flex

Related posts about exception