4 * This exception is thrown when we need to write content to the
5 * file and it is not writable
8 * @http://www.projectpier.org/
10 class FileNotWriableError
extends Error
{
13 * Path of the requested file
20 * Construct the FileNotWriableError
24 * @return FileNotWriableError
26 function __construct($file_path, $message = null) {
27 if(is_null($message)) $message = "File '$file_path' is not writable";
28 parent
::__construct($message);
29 $this->setFilePath($file_path);
33 * Return errors specific params...
39 function getAdditionalParams() {
41 'file path' => $this->getFilePath()
43 } // getAdditionalParams
45 // -------------------------------------------------------
46 // Getters and setters
47 // -------------------------------------------------------
56 function getFilePath() {
57 return $this->file_path
;
64 * @param string $value
67 function setFilePath($value) {
68 $this->file_path
= $value;
71 } // FileNotWriableError