PHP Class Neos\Fusion\Core\ExceptionHandlers\AbstractRenderingExceptionHandler

Show file Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$runtime Neos\Fusion\Core\Runtime Current TypoScript runtime

Public Methods

Method Description
handleRenderingException ( string $typoScriptPath, Exception $exception ) : string Handle an Exception thrown while rendering TypoScript
setRuntime ( Runtime $runtime ) : void Sets the current TypoScript runtime

Protected Methods

Method Description
exceptionDisablesCache ( string $typoScriptPath, Exception $exception ) : boolean Can be used to determine if handling the exception should disable the cache or not.
formatScriptPath ( string $typoScriptPath, string $delimiter, boolean $escapeHtml = true ) : string breaks the given path to multiple line to allow a nicer formatted logging
getRuntime ( ) : Runtime Returns current TypoScript runtime
handle ( string $typoScriptPath, Exception $exception, integer $referenceCode ) : string Handles an Exception thrown while rendering TypoScript

Method Details

exceptionDisablesCache() protected method

Can be used to determine if handling the exception should disable the cache or not.
protected exceptionDisablesCache ( string $typoScriptPath, Exception $exception ) : boolean
$typoScriptPath string The typoScriptPath that triggered the Exception
$exception Exception
return boolean Should caching be disabled?

formatScriptPath() protected method

example: formatScriptPath('page/body