Include update date in atom feed regardless of the number of entries
[gitphp.git] / include / exception / InvalidFileException.class.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/** 
 * Custom exception when an invalid file is specified
 *
 * @author Christopher Han <xiphux@gmail.com>
 * @copyright Copyright (c) 2012 Christopher Han
 * @package GitPHP
 * @subpackage Exception
 */
class GitPHP_InvalidFileException extends GitPHP_MessageException
{
        /**
         * File
         *
         * @var string
         */
        public $File;
 
        /**
         * Constructor
         *
         * @param string $file file
         * @param string $message message
         * @param int $code exception code
         */
        public function __construct($file, $message = '', $code = 0)
        {
                $this->File = $file;
                if (empty($message))
                        $message = sprintf('%1$s is not a file', $file);
                parent::__construct($message, true, 200, $code);
        }
}
 
comments