Exceptions for non writable directories in debug mode

It will be very handy if Yii (when is in debug mode) throws exceptions when a directory is not writable and Yii wants to write in it… (I mean directories like 'assets', 'data', 'runtime').

ping

It should cause a PHP error. Did you turn on error display in php.ini?

Nope. It is a production server hosting multiple sites. Error displays are turned off, because it is some kind of security good practise… The administrator refuses to change this setting because he must restart the web server…

That's why I thought that it will be good if I can put my Yii app in debug mode and see the errors, clear them and the put back the app in production mode…

edit: I must add: I can not always see the error logs, because I have no SSH access and the administrator doesn't want to support me all the time I am deploying and/or fixing migration errors…

Actually, I think this is common scenario in shared hostings…