views:

14

answers:

0

Hi,

I'm looking for a design pattern to handle exceptions generated by the web service.

I have looked at the SOAP examples and it's not suitable for my project.

I make the calls to the web services through AJAX. If the call fails or business logic isn't met I'd like to pass a custom object to the browser which will contain some information about the exception. The browser will look at the exception information through java script and handle it. Is this a reasonable thing to do or should I be looking for alternatives?

The only thing I have managed to find so far is SOAP.

Thank you