Exception thrower for PHP warnings