diff options
Diffstat (limited to 'framework/Log/EventLog/exceptions')
-rw-r--r-- | framework/Log/EventLog/exceptions/file_exception.php | 44 | ||||
-rw-r--r-- | framework/Log/EventLog/exceptions/writer_exception.php | 30 |
2 files changed, 74 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 ); + } +} +?> diff --git a/framework/Log/EventLog/exceptions/writer_exception.php b/framework/Log/EventLog/exceptions/writer_exception.php new file mode 100644 index 00000000..ae82bf07 --- /dev/null +++ b/framework/Log/EventLog/exceptions/writer_exception.php @@ -0,0 +1,30 @@ +<?php +/** + * File containing the ezcLogWriterException 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 + */ + +/** + * The ezcLogWriterException will be thrown when an {@class ezcLogWriter} or + * a subclass encounters an exceptional state. + * + * @package EventLog + * @version //autogen// + */ +class ezcLogWriterException extends Exception +{ + /** + * Constructs a new ezcLogWriterException with the message $message. + * + * @param string $message + */ + public function __construct( $message ) + { + parent::__construct( $message, 0 ); + } +} +?> |