From fc647788cf137595e84bea72edb16d86ab1d76a5 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Sat, 14 Jul 2012 22:56:33 +0200 Subject: echo logger --- src/callnotifier/Source/File.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/callnotifier/Source/File.php') diff --git a/src/callnotifier/Source/File.php b/src/callnotifier/Source/File.php index c358397..9b6a03e 100644 --- a/src/callnotifier/Source/File.php +++ b/src/callnotifier/Source/File.php @@ -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); } -- cgit v1.2.3