public function render()
{
$exception = $this->data['exception'];
$errorContentsFile = '500';
if (method_exists($exception, 'getStatusCode') && file_exists($this->getViewFilePath($exception->getStatusCode()))) {
$errorContentsFile = $exception->getStatusCode();
}
$errorContents = View::file($this->getViewFilePath($errorContentsFile), $this->data)->render();
$view = View::file($this->getViewFilePath($this->view), $this->data, ['errorContents' => $errorContents]);
return $view;
}