Handle all php errors as exceptions.