src/mako/error/handlers/web/ProductionHandler.php
protected function getExceptionAsRenderedView(Throwable $exception): string
	{
		$view = 'error';

		if($exception instanceof HttpException)
		{
			$code = $exception->getCode();

			if($this->view->exists('mako-error::' . $code))
			{
				$view = $code;
			}
		}

		return $this->view->render('mako-error::' . $view);
	}
protected function getExceptionAsRenderedView(Throwable $exception): string
	{
		$view = 'error';

		if($exception instanceof HttpException)
		{
			$code = $exception->getCode();

			if($this->view->exists('mako-error::' . $code))
			{
				$view = $code;
			}
		}

		return $this->view->render('mako-error::' . $view);
	}
protected function getExceptionAsRenderedView ( Throwable $ exception ) : string { $ view = 'error' ; if ( $ exception instanceof HttpException ) { $ code = $ exception -> getCode ( ) ; if ( $ this -> view -> exists ( 'mako-error::' . $ code ) ) { $ view = $ code ; } } return $ this -> view -> render ( 'mako-error::' . $ view ) ; }
Returns a rendered error view.

@param  \Throwable $exception Exception
@return string
Returns a rendered error view .