public function getErrorView()
    {
        if($this->app->exists(ErrorView::class)) {
            return $this->app->get(ErrorView::class);
        }
        $error_files = (array)$this->app->get(Web::ERROR_VIEWS);
        if (empty($error_files)) {
            $this->app->set(ErrorView::class, null, true);
            return null;
        }
        $view = new ErrorView($this->getViewEngine(), $this->web->debug);
        if (isset($error_files[0])) {
            $view->default_error_file = $error_files[0];
            unset($error_files[0]);
        }
        $view->setLogger($this->web->getLog());
        $view->error_files = $error_files;
        $this->app->set(ErrorView::class, $view, true);

        return $view;
    }
public function getErrorView()
    {
        if($this->app->exists(ErrorView::class)) {
            return $this->app->get(ErrorView::class);
        }
        $error_files = (array)$this->app->get(Web::ERROR_VIEWS);
        if (empty($error_files)) {
            $this->app->set(ErrorView::class, null, true);
            return null;
        }
        $view = new ErrorView($this->getViewEngine(), $this->web->debug);
        if (isset($error_files[0])) {
            $view->default_error_file = $error_files[0];
            unset($error_files[0]);
        }
        $view->setLogger($this->web->getLog());
        $view->error_files = $error_files;
        $this->app->set(ErrorView::class, $view, true);

        return $view;
    }
public function getErrorView ( ) { if ( $ this -> app -> exists ( ErrorView :: class ) ) { return $ this -> app -> get ( ErrorView :: class ) ; } $ error_files = ( array ) $ this -> app -> get ( Web :: ERROR_VIEWS ) ; if ( empty ( $ error_files ) ) { $ this -> app -> set ( ErrorView :: class , null , true ) ; return null ; } $ view = new ErrorView ( $ this -> getViewEngine ( ) , $ this -> web -> debug ) ; if ( isset ( $ error_files [ 0 ] ) ) { $ view -> default_error_file = $ error_files [ 0 ] ; unset ( $ error_files [ 0 ] ) ; } $ view -> setLogger ( $ this -> web -> getLog ( ) ) ; $ view -> error_files = $ error_files ; $ this -> app -> set ( ErrorView :: class , $ view , true ) ; return $ view ; }
get error view render, ErrorView,

@return ErrorView|null
get error view render ErrorView