Path

ez components / documentation / api reference / 2007.2 / archive


Archive: ezcArchiveFileException

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcArchiveFileException

This class provides an exception for errors occuring while accessing file based archives. [source]
Create the exception and pass the error code in the constructor, the error message will be automatically created.
1.  throw new ezcArchiveFileExceptionezcArchiveFileException::
2.  FILE_NOT_READABLE$filename );

Parents

Exception
   |
   --ezcBaseException
      |
      --ezcArchiveFileException

Constants

FILE_NOT_FOUND = 1 The file could not be found on the filesystem.
FILE_NOT_READABLE = 2 The file could not be read from the filesystem.
FILE_NOT_SUITABLE = 4 The file not suitable.
FILE_NOT_WRITABLE = 3 The file could not be written to the filesystem.

Inherited Member Variables

From ezcBaseException:
public  ezcBaseException::$originalMessage

Method Summary

public ezcArchiveFileException __construct( $message, $code )
Constructs a new archive file exception.

Inherited Methods

From ezcBaseException :
public ezcBaseException ezcBaseException::__construct()
Constructs a new ezcBaseException with $message

Methods

__construct

ezcArchiveFileException __construct( string $message, int $code )
Constructs a new archive file exception.
Creates the exceptions with one of the class constants as error code. The error message will be generated automatically from the code.

Parameters

Name Type Description
$message string The message to throw
$code int The error code which is taken from one of the class constants.

Redefinition of

Method Description
ezcBaseException::__construct() Constructs a new ezcBaseException with $message

Last updated: Mon, 17 Dec 2007