Hello,
I have a function to call a webservice method like so.
WS_Service.LookUp(myParam, Success, Failure);
In the WebService call I am throwing a Custom Exception and setting the Message property to a friendly message. For example, "You have an Invalid ID"
My Failure Javascript function does get excecuted. However, when I try to read the Message Property from the exception that was thrown, I have lost the friendly message that I have set in the origional call. There must be some kind of conversion going on and wondering how to send a Message Property back to the Failure function.
function Failure(objErr){
SetFriendlyMessage(objErr.message);
}
Thanks.
I have a function to call a webservice method like so.
WS_Service.LookUp(myParam, Success, Failure);
In the WebService call I am throwing a Custom Exception and setting the Message property to a friendly message. For example, "You have an Invalid ID"
My Failure Javascript function does get excecuted. However, when I try to read the Message Property from the exception that was thrown, I have lost the friendly message that I have set in the origional call. There must be some kind of conversion going on and wondering how to send a Message Property back to the Failure function.
function Failure(objErr){
SetFriendlyMessage(objErr.message);
}
Thanks.