Hi,
I am looking for some good practices to follow for handling server side errors on the datatable. We have a list of server side exceptions to be caught and appropriately display a custom error message on the datatable.
Some approaches i was thinking about was
1) Return different response.status codes for each exception in json response, interpret them in datatable and display appropriate error message
2) Generate a custom error message on server side itself based on exception, return it as part of json response and display them on the datatable.
Wanted to check how best others have dealt with this before ...
I am looking for some good practices to follow for handling server side errors on the datatable. We have a list of server side exceptions to be caught and appropriately display a custom error message on the datatable.
Some approaches i was thinking about was
1) Return different response.status codes for each exception in json response, interpret them in datatable and display appropriate error message
2) Generate a custom error message on server side itself based on exception, return it as part of json response and display them on the datatable.
Wanted to check how best others have dealt with this before ...