1: <?php
2: /**
3: * Created by PhpStorm.
4: * User: manus
5: * Date: 13/1/16
6: * Time: 17:53
7: */
8:
9: namespace GLFramework\Controller;
10:
11:
12: class ExceptionController extends ErrorController
13: {
14:
15: private $exception;
16: var $trace = null;
17:
18: /**
19: * ExceptionController constructor.
20: * @param $exception \Exception
21: */
22: public function __construct($exception)
23: {
24: parent::__construct($exception->getMessage());
25: $this->exception = $exception;
26: $this->trace = $exception->getTraceAsString();
27: }
28:
29: public function run()
30: {
31: parent::run(); // TODO: Change the autogenerated stub
32: }
33:
34:
35: }