1 | <?php |
||
7 | class Exception extends \Exception |
||
8 | { |
||
9 | /** |
||
10 | * __Construct function. |
||
11 | * |
||
12 | * Redefine the exception so message isn't optional |
||
13 | * |
||
14 | * @access public |
||
15 | * @param string $message |
||
16 | * @param int $code |
||
17 | * @param Exception $previous |
||
18 | */ |
||
19 | 1 | public function __construct($message, $code = 0, Exception $previous = null) |
|
20 | { |
||
21 | // Make sure everything is assigned properly |
||
22 | 1 | parent::__construct($message, $code, $previous); |
|
25 |