* throw new ezcArchiveFileException( ezcArchiveFileException:: * FILE_NOT_READABLE, $filename ); * * * @package Archive * @version 1.2 */ class ezcArchiveFileException 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; /** * The file not suitable. * Notice that the file may be available on the filesystem. */ const FILE_NOT_SUITABLE = 4; /** * Constructs a file exception * * Creates the exceptions with one of the class constants as error code. * The error message will be generated automatically from the code. * * @param int $code The error code which is taken from one of the class * constants. */ public function __construct( $message, $code ) { parent::__construct( $message, $code ); } } ?>