When there's an error with the Database, Joomla throws that error. It takes place so early in the execution cycle that nothing from the Joomla application is ready, so you get an ugly blank page with the error message in simple text.
Is there a way to override that so these errors are directed for example to a static HTML error page? I already checked this
https://docs.joomla.org/Custom_error_pages
but if I'm not wrong this won't work for these errors, as it requires more stuff being properly loaded, which is not the case.
Thanks in advance!