How to catch database operation errors |
@jreklund is right,
i must add that API CONTROLLER has to handle the error processing, also please read on and implement correct REST API responses and http response codes, and JQUERY knows how to handle them what i would do is to check the result of the DB queries in the CONTROLLER and then return corresponding http headers and the payload (null, false, or nothting {}). then JQUERY can detect and handle the appropriate action. |
Messages In This Thread |
How to catch database operation errors - by _Alain_ - 11-13-2019, 01:39 PM
RE: How to catch database operation errors - by jreklund - 11-14-2019, 12:30 PM
RE: How to catch database operation errors - by loopzzz - 11-15-2019, 12:25 AM
RE: How to catch database operation errors - by _Alain_ - 11-15-2019, 04:47 AM
RE: How to catch database operation errors - by _Alain_ - 11-15-2019, 05:01 AM
RE: How to catch database operation errors - by jreklund - 11-15-2019, 11:29 AM
RE: How to catch database operation errors - by _Alain_ - 11-19-2019, 04:42 AM
RE: How to catch database operation errors - by InsiteFX - 11-19-2019, 05:11 PM
RE: How to catch database operation errors - by _Alain_ - 11-20-2019, 07:39 AM
|