Include update date in atom feed regardless of the number of entries
[gitphp.git] / include / exception / MessageException.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
35
36
37
38
39
40
41
<?php
/**
 * Custom exception for signalling display of a message to user
 *
 * @author Christopher Han <xiphux@gmail.com>
 * @copyright Copyright (c) 2010 Christopher Han
 * @package GitPHP
 * @subpackage Exception
 */
class GitPHP_MessageException extends Exception
{
 
        /**
         * Whether this is an error or informational
         *
         * @var boolean
         */
        public $Error;
 
        /**
         * HTTP status code
         *
         * @var integer
         */
        public $StatusCode;
        
        /**
         * Constructor
         *
         * @param string $message message string
         * @param boolean $error true if this is an error rather than informational
         * @param integer $statusCode HTTP status code to return
         * @param integer $code exception code
         */
        public function __construct($message, $error = false, $statusCode = 200, $code = 0) {
                $this->Error = $error;
                $this->StatusCode = $statusCode;
                parent::__construct($message, $code);
        }
}
 
comments