handleRenderingException() public method

Handle an Exception thrown while rendering TypoScript according to settings specified in Neos.Fusion.rendering.exceptionHandler
public handleRenderingException ( array $typoScriptPath, Exception $exception, boolean $useInnerExceptionHandler = false ) : string
$typoScriptPath array
$exception Exception
$useInnerExceptionHandler boolean
return string
コード例 #1
0
ファイル: FusionPathProxy.php プロジェクト: neos/typoscript
 /**
  * Post-Processor which is called whenever this object is encountered in a Fluid
  * object access.
  *
  * Evaluates TypoScript objects and eel expressions.
  *
  * @return FusionPathProxy|mixed
  */
 public function objectAccess()
 {
     if (!$this->fusionRuntime->canRender($this->path)) {
         return $this;
     }
     try {
         return $this->fusionRuntime->evaluate($this->path, $this->templateImplementation);
     } catch (\Exception $exception) {
         return $this->fusionRuntime->handleRenderingException($this->path, $exception);
     }
 }