summaryrefslogtreecommitdiff
path: root/framework/Log/EventLog/exceptions/file_exception.php
diff options
context:
space:
mode:
authorwei <>2006-01-04 08:10:56 +0000
committerwei <>2006-01-04 08:10:56 +0000
commit3628bfe141ef02299beb9514397cfc2c27a7dcb1 (patch)
treee1b09079bee418e45af6c49314a9f0fec5cf2012 /framework/Log/EventLog/exceptions/file_exception.php
parent0ebae0856a5ed24bcc1b01d13d8715288f39a08d (diff)
adding TEventLog using ezcLog from ezComponents.
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 );
+ }
+}
+?>