summaryrefslogtreecommitdiff
path: root/framework/Log/EventLog/exceptions/file_exception.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Log/EventLog/exceptions/file_exception.php')
-rw-r--r--framework/Log/EventLog/exceptions/file_exception.php44
1 files changed, 44 insertions, 0 deletions
diff --git a/framework/Log/EventLog/exceptions/file_exception.php b/framework/Log/EventLog/exceptions/file_exception.php
new file mode 100644
index 00000000..03f3ebb9
--- /dev/null
+++ b/framework/Log/EventLog/exceptions/file_exception.php
@@ -0,0 +1,44 @@
+<?php
+/**
+ * File containing the ezcFileWriterException class.
+ *
+ * @package EventLog
+ * @version //autogen//
+ * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved.
+ * @license http://ez.no/licenses/new_bsd New BSD License
+ */
+/**
+ * Exception thrown when a file error occures.
+ *
+ * @package EventLog
+ * @version //autogen//
+ */
+class ezcLogFileException extends Exception
+{
+ /**
+ * The file could not be found on the filesystem.
+ */
+ const FILE_NOT_FOUND = 1;
+
+ /**
+ * The file could not be read from the filesystem.
+ */
+ const FILE_NOT_READABLE = 2;
+
+ /**
+ * The file could not be written to the filesystem.
+ */
+ const FILE_NOT_WRITABLE = 3;
+
+ /**
+ * Constructs a new ezcLogFileExcpetion with the message $message and the error code $code.
+ *
+ * @param string $message
+ * @param int $code
+ */
+ public function __construct( $message, $code )
+ {
+ parent::__construct( $message, $code );
+ }
+}
+?>