src/exceptionHandler/ExceptionHandler.class.php
protected function renderErrorMessage(\Exception $error, $type) {
		
		if (!isset($this->templates[$type]))
			throw new UnexpectedValueException('Cannot render template type "' . $type . '"');
		
		$template = $this->templates[$type];
		
		if (is_array($this->templates[$type]))	{
			$templateKey = property_exists($error, 'template') ? $error->template : $error->getCode();
			if (isset($this->templates[$type][$templateKey])) {
				$template = $this->templates[$type][$templateKey];
			} else {
				$template = $this->templates[$type][500];
			}
		}
		
		$tpl = new Template('', '');
		$tpl->setTemplatePath($template);
	
		$tpl->set('app', $this->app);
		$tpl->set('error', $error);
		$tpl->set('verboseMode', $this->verboseMode);
	
		return $tpl->fetch('');
	}
protected function renderErrorMessage(\Exception $error, $type) {
		
		if (!isset($this->templates[$type]))
			throw new UnexpectedValueException('Cannot render template type "' . $type . '"');
		
		$template = $this->templates[$type];
		
		if (is_array($this->templates[$type]))	{
			$templateKey = property_exists($error, 'template') ? $error->template : $error->getCode();
			if (isset($this->templates[$type][$templateKey])) {
				$template = $this->templates[$type][$templateKey];
			} else {
				$template = $this->templates[$type][500];
			}
		}
		
		$tpl = new Template('', '');
		$tpl->setTemplatePath($template);
	
		$tpl->set('app', $this->app);
		$tpl->set('error', $error);
		$tpl->set('verboseMode', $this->verboseMode);
	
		return $tpl->fetch('');
	}
Render error

@param \Exception $error

@return string