Add menu for users to switch their language
[gitphp.git] / include / 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
<?php
/**
 * GitPHP Message exception
 *
 * Custom exception for signalling display of a message to user
 *
 * @author Christopher Han <xiphux@gmail.com>
 * @copyright Copyright (c) 2010 Christopher Han
 * @package GitPHP
 */
 
/**
 * Message Exception
 *
 * @package GitPHP
 */
class GitPHP_MessageException extends Exception
{
 
        public $Error;
        
        /**
         * Constructor
         *
         * @access public
         * @param string $message message string
         * @param boolean $error true if this is an error rather than informational
         * @param integer $code exception code
         * @param Exception $previous previous exception
         * @return Exception message exception object
         */
        public function __construct($message, $error = false, $code = 0) {
                $this->Error = $error;
                parent::__construct($message, $code);
        }
}
 
comments