handle php notice as exception