This topic is locked
[SOLVED]

Graceful Error Trapping for delete when there are child records in SQL Azure

8/6/2021 12:19:17 PM
PHPRunner General questions
Dalkeith author

I was wondering if people could give me some pointers.

On occasion I have lists that do not show child records but have the option to delete records.

If a user attempts to delete a record with a child record (and referential integrity is enforced in the database) a rather ugly php error is thrown.

Not really an error on phprunners side but any ideas how to trap this error and gracefully indicate to the user that deletion is not possible unless the child records are first deleted.

Assuming I cannot switch off referential integrity.

HJB 8/6/2021

Error reporting

From the URL content above I understand that suppression of detailed
error messages is possible to then pave the way for a custom error message.

Dalkeith author 8/6/2021

Superb HJB - my google foo failed me..!