aboutsummaryrefslogtreecommitdiff
path: root/src/callnotifier/Source/File.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-07-14 22:56:33 +0200
committerChristian Weiske <cweiske@cweiske.de>2012-07-14 22:56:33 +0200
commitfc647788cf137595e84bea72edb16d86ab1d76a5 (patch)
treeabaff9679ba7ac8b029aae22a9b7d23494f17588 /src/callnotifier/Source/File.php
parent706ce1501a9ab1a33e4106774665c631a3ad3749 (diff)
downloadauerswald-callnotifier-fc647788cf137595e84bea72edb16d86ab1d76a5.tar.gz
auerswald-callnotifier-fc647788cf137595e84bea72edb16d86ab1d76a5.zip
echo logger
Diffstat (limited to 'src/callnotifier/Source/File.php')
-rw-r--r--src/callnotifier/Source/File.php6
1 files changed, 3 insertions, 3 deletions
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);
}