Zend\Mvc\View\Http\RouteNotFoundStrategy::injectException PHP Метод

injectException() защищенный Метод

If $displayExceptions is enabled, and an exception is found in the event, inject it into the model.
protected injectException ( Zend\View\Model\ViewModel $model, MvcEvent $e ) : void
$model Zend\View\Model\ViewModel
$e Zend\Mvc\MvcEvent
Результат void
    protected function injectException($model, $e)
    {
        if (!$this->displayExceptions()) {
            return;
        }
        $model->setVariable('display_exceptions', true);
        $exception = $e->getParam('exception', false);
        // @TODO clean up once PHP 7 requirement is enforced
        if (!$exception instanceof \Exception && !$exception instanceof \Throwable) {
            return;
        }
        $model->setVariable('exception', $exception);
    }