4 * Failed to load image from file
7 * @http://www.projectpier.org/
9 class FailedToLoadImageError
extends Error
{
19 * Construct the FailedToLoadImageError
21 * @param string $file_path
22 * @param string $message If NULL default message will be used
23 * @return FileNotImageError
25 function __construct($file_path, $message = null) {
26 if(is_null($message)) $message = "Failed to load image from '$file_path'";
27 parent
::__construct($message);
28 $this->setFilePath($file_path);
32 * Return errors specific params...
38 function getAdditionalParams() {
40 'file path' => $this->getFilePath()
42 } // getAdditionalParams
44 // ---------------------------------------------------
46 // ---------------------------------------------------
54 function getFilePath() {
55 return $this->file_path
;
61 * @param string $value
64 function setFilePath($value) {
65 $this->file_path
= $value;
68 } // FailedToLoadImageError