im trying to implement a custom error page, what I want to do is create a single common error page that can display the error that occurred or other information (custom error message). if an error occurs on the website, the user should be directed to this page on which the error message is displayed.
so, for example, if I had a page that tried to update something in the database, but something went wrong, I should be redirected to the page with an error that would have some kind of custom text, for example, that- something like "an error occurred with bla bla bla ... contact the administrator."
hope it makes sense
thank
source
share