Transform every PHP error into an exception.