The thing is these are not application / programming errors, so there is nothing that I can fix.
The scenario is this:
The app works, without error, but if the mysql db is offline, the errors that I posted appear. There is no way for me to catch those errors, that I can find.
Does that make sense?
I want to catch those errors and display a nice message to the user, and not reveal the innards of the app.
You can recreate this by putting that try catch block in your code, seeing that there are no errors, and then turning the db off.
How do I catch that scenario?
Or am I totally missing something?
'continue_on' => array(E_NOTICE, E_WARNING, E_DEPRECATED, E_STRICT),but if you remove E_WARNING from here, the new class will now throw a PhpErrorException on E_WARNING errors.
It looks like you're new here. If you want to get involved, click one of these buttons!