OnError - Catching an Exception in Atlas & Parameter List

When I first saw Atlas, the one thing that stuck out as missing was the inability to catch an Exception.  I never saw an example on how to do it and when I asked about it, I didn't get any response.  Needless to say, I was really excited when Craig Shoemaker, of the Polymorphic Podcast, told me last week in an email that the ability was in Atlas Quickstarts.  Very nice in deedy.  Now, I can call a web service on the server like this:

..........
Sample.SampleServiceCall(param1, param2,...., paramN, OnComplete, OnTimeOut, OnError);
..........
function OnError(result)
{
//use result.get_message() to get the message returned.
//use result.get_stackTace() to get the stack trace.
}

Wally

No Comments