I have WCF service which communicates with SqlServer, and want to make frontend with JQuery.
The question is: How can i catch WCF errors in JQuery code, such as failed connection or not existing database or some others.
PS. Maybe its better to use something like ASP.NET MVC with JQuery rather than pure JQuery?
We are also using jquery which communicates to WCF for one of our application. WCF exposes data as json object. Along with data it will have a response object which hold all information like failure , success etc. If its a failure it will have a message telling what type of expection it is.
For every result send a response object which can hold all info
response code
success failure
expection details.
So that we can check that object and query the json object for data.
please let me know if you need any furthur info on this.