Is there some way I can show custom exception messages as an alert in my jQuery AJAX error message?
For example, if I want to throw an exception on the server side v
You need to convert the responseText to JSON. Using JQuery:
responseText
jsonValue = jQuery.parseJSON( jqXHR.responseText ); console.log(jsonValue.Message);