rename echo logger to debug
[auerswald-callnotifier.git] / src / callnotifier / Source / File.php
index c358397e96978b0f59a3bbfdc89e738d1999855f..9b6a03ea07069d28ab4906301abc11a71caeb7a7 100644 (file)
@@ -13,19 +13,19 @@ class Source_File
     {
         $file = $this->config->replayFile;
         if (!file_exists($file)) {
-            throw new Exception('Replay file does not exist');
+            throw new \Exception('Replay file does not exist');
         }
 
         $handle = fopen($file, 'r');
         if (!$handle) {
-            throw new Exception('Cannot open replay file for reading');
+            throw new \Exception('Cannot open replay file for reading');
         }
 
         while (($line = fgets($handle, 4096)) !== false) {
             $this->handler->handle($line);
         }
         if (!feof($handle)) {
-            throw new Exception('unexpected fgets() fail');
+            throw new \Exception('unexpected fgets() fail');
         }
         fclose($handle);
     }