How Can I show a custom view instead of the generic error attached in cases of the database going down unexpectedly?

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In applications folder there is a folder named errors. There are all
error fileswhich comes up when an error is occurred.When database error is occured, error_db.php file is shown in browser. You can edit it or replace that with your custom file.
Hope this helps.