src/errorHandler/ErrorHandler.class.php
protected function renderErrorMessage(\Throwable $error, $type) {
		if (!isset($this->templates[$type]))
			throw new UnexpectedValueException('Cannot render template type "' . $type . '"');
		
		$tpl = new Template('', '');
		$tpl->setTemplatePath($this->templates[$type]);
		
		$tpl->set('app', $this->app);
		$tpl->set('error', $error);
		$tpl->set('verboseMode', $this->verboseMode);
		
		return $tpl->fetch('');
	}
protected function renderErrorMessage(\Throwable $error, $type) {
		if (!isset($this->templates[$type]))
			throw new UnexpectedValueException('Cannot render template type "' . $type . '"');
		
		$tpl = new Template('', '');
		$tpl->setTemplatePath($this->templates[$type]);
		
		$tpl->set('app', $this->app);
		$tpl->set('error', $error);
		$tpl->set('verboseMode', $this->verboseMode);
		
		return $tpl->fetch('');
	}
Render error

@param \Throwable $error

@return string