1 Reply Latest reply on Nov 19, 2010 2:37 PM by MartinHviid

    Is there a way to trap for exceptions that were unhandled anywhere else in a Flex app?

    JoshBeall Level 1

      Hi All,

       

      Is there a way I can setup my Flex app to trap exceptions (errors) that are thrown, but not caught anywhere else in my app?  What I'm hoping to do is put some code at the "topmost" layer of my application that will trap for any exceptions that are thrown, and then it can log them and notify the server that an unhandled exception happened in the Flex app.  This will notify me that an error happened, and allow me to troubleshoot the issue by giving me the complete stack trace (and whatever other information I want to send along with the error).

       

      In ASP.NET you can do something like this with ELMAH:

      http://code.google.com/p/elmah/

       

        -Josh