public function actionError(RequestApplicationInterface $app, \Throwable $exception) {
        return $this->render($app, 'view', [
            'exception' => $exception,
            'exceptionName' => $this->getExceptionName($exception),
        ], true);
    }