locked
How to create custom managed exception in WinMD to be catched by javascript?

    Question

  • Hi,

     

    I'm creating an app using JavaScript calling managed WinRT component written in C#. What is the recommended practice of exposing a custom declared exception in JavaScript with try/catch block such as

    public sealed class CustomException : Exception {
        public CustomException : base("custom message") {}
    
    }
    
    Thanks

    Saturday, November 19, 2011 11:44 PM

Answers