locked
unhandled exceptions in WinJS code.

    Question

  • Can anybody tell me how to deal with unhandled exceptions in WinJS code. Is there are better way to handle them instead of using try/catch block.I have already made use of try/catch block in some parts of my code.
    Friday, June 22, 2012 5:49 PM

Answers

  • try catch is definately the best way to handle exceptions.  You not only don't want your app to crash, you want to be able to try and recover and/or provide some sort of logging or troubleshooting information.  Anything you do not handle will be caught by that app and bring the application down (and rightfully so)!


    Jeff Sanders (MSFT)

    Friday, June 22, 2012 6:42 PM
    Moderator

All replies