Skip to main content
Topic: customize errors (Read 1433 times) previous topic - next topic

customize errors

how can i handle customizing errors in RAD ...

SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`hn_padrh`.`hn_questoes`, CONSTRAINT `hn_questoes_ibfk_1` FOREIGN KEY (`id_dimensao`) REFERENCES `hn_dimensao` (`id_dimensao`))

I am evaluating the RAD and intend in the coming days to be acquiring the license ...
Regi

Re: customize errors

Reply #1
Hi, I don't really understand what you mean by customizing error. The page you are seeing is already a custom error page.
  • If you don't want to throw errors on the page, you can use try catch in your controller page to handle the exception(requires manual editing).
  • you can also publish your application in production mode. This way errors are logged
.



Re: customize errors

Reply #2
I want to show users in my app suggestive messages like:
"Item cannot be deleted while there are references"
thanks
Regi