Skip navigation
Currently Being Moderated

Global error handling

Aug 6, 2012 11:22 AM

Just curious: Has anyone successfully created a global error handler that would catch an error from any part of a real application based on Parsley, and on a few other well known frameworks?

 

Thanks

 
Replies
  • Currently Being Moderated
    Aug 6, 2012 3:35 PM   in reply to Zolotoj

    Try the example in the doc and the one on my blog to see if they work for you.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 7, 2012 7:53 AM   in reply to Zolotoj

    It might apply if you have multiple SWFs including RSLs involved.  Every loaderInfo needs to be listening in order to catch some errors.

     

    Are you saying it works from a service but not from your own code?  How are you generating the error in your code?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 7, 2012 11:10 AM   in reply to Zolotoj

    I’m still unclear.  The error is not caught but the debugger player shows the error dialog?  Or nothing shows up?  What is on the call stack at the point of the error?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 7, 2012 2:36 PM   in reply to Zolotoj

    And what is on the call stack?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 7, 2012 3:40 PM   in reply to Zolotoj

    Can you make a simple test case that reproduces the problem?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2012 9:46 AM   in reply to Zolotoj

    If that were true, the Player’s error dialog would not show up.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2012 9:53 AM   in reply to Zolotoj

    Then that would be a reasonable explanation.  However, if I read over your prior post #6, my interpretation is that you are claiming that the dialog does show up.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2012 10:43 AM   in reply to Zolotoj

    Then yes, there is likely something else catching it.  Single-stepping will show you the catch if you have source for the catch.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points