Include update date in atom feed regardless of the number of entries
[gitphp.git] / include / exception / MissingProjectrootException.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
<?php
/**
 * Custom exception when projectroot is missing
 *
 * @author Christopher Han <xiphux@gmail.com>
 * @copyright Copyright (c) 2012 Christopher Han
 * @package GitPHP
 * @subpackage Exception
 */
class GitPHP_MissingProjectrootException extends GitPHP_MessageException
{
        /**
         * Constructor
         *
         * @param string $message
         * @param int $code exception code
         */
        public function __construct($message = '', $code = 0)
        {
                if (empty($message))
                        $message = 'A projectroot must be set in the config';
                parent::__construct($message, true, 500, $code);
        }
}
 
comments