/** * Constructor. * * @access public * @param \Throwable $exception Throwable * @param \mako\http\Request $request Request instance * @param \mako\http\Response $response Response intance * @param \mako\view\ViewFactory $view View factory instance */ public function __construct(Throwable $exception, Request $request, Response $response, ViewFactory $view) { parent::__construct($exception); $this->request = $request; $this->response = $response; $this->view = $view; $this->view->registerNamespace('mako-error', __DIR__ . '/views'); }
/** * Constructor. * * @access public * @param \Exception $exception Exception * @param \mako\cli\output\Output $output Output */ public function __construct(Exception $exception, Output $output) { parent::__construct($exception); $this->output = $output; }