]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/tokenizer/legacy_icu_tokenizer.php
php: force use of global Exception class
[nominatim.git] / lib-php / tokenizer / legacy_icu_tokenizer.php
index ef79769c76bb2a7063cbb86dff67b3d09357e9f3..3751e821837d4cfb9acb52f7fb3f0e9ebf000465 100644 (file)
@@ -22,10 +22,10 @@ class Tokenizer
         $sSQL = 'SELECT word_id FROM word limit 1';
         $iWordID = $this->oDB->getOne($sSQL);
         if ($iWordID === false) {
-            throw new Exception('Query failed', 703);
+            throw new \Exception('Query failed', 703);
         }
         if (!$iWordID) {
-            throw new Exception('No value', 704);
+            throw new \Exception('No value', 704);
         }
     }