title: Throw ajax error incase of custom exception using JSON object while populating datatable using datatables jquery plugin
body: <p>I am new to MVC and Jquery. I am currently using datatables plugin from jquery to populate a table in my application. My issue is when the application loads for the first time, <strong>sAjaxSource</strong> is used to specify the url where data is loaded from(JSON Object is returned).</p>
  
  <p>My issue is I have few custom exceptions to catch while loading the data. But I am not sure how to pass this as an error using JSON and where do we catch error on client side. I did not find any option which specifies success or error result of ajax call while the datatable populates. My reference link is <a href="http://www.datatables.net/ref#sDom" rel="nofollow">http://www.datatables.net/ref#sDom</a></p>