Path

ez components / documentation / api reference / 2006.2 / archive


eZ Components 2006.2

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
   |
   --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 Exception (Internal Class):
protected  $code
protected  $file
protected  $line
protected  $message
private  $string
private  $trace

Method Summary

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

Inherited Methods

From Exception (Internal Class) :
public Exception constructor __construct ( $message, $code )
public void getCode ( )
public void getFile ( )
public void getLine ( )
public void getMessage ( )
public void getTrace ( )
public void getTraceAsString ( )
public void __clone ( )
public void __toString ( )

Methods

__construct

ezcArchiveFileException __construct( $message, int $code )
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.

Parameters

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

Redefinition of

Method Description
Exception::constructor __construct ( $message, $code )  

Last updated: Thu, 01 Nov 2007