NodeWrappingHandler
class NodeWrappingHandler extends AbstractRenderingExceptionHandler (View source)
Provides a nicely formatted html error message including all wrappers of an content element (i.e. menu allowing to discard the broken element)
Properties
protected Runtime | $runtime | Current Fusion runtime |
from AbstractRenderingExceptionHandler |
protected ContentElementWrappingService | $contentElementWrappingService | ||
protected Environment | $environment | ||
protected PrivilegeManagerInterface | $privilegeManager |
Methods
Handle an Exception thrown while rendering Fusion
breaks the given path to multiple line to allow a nicer formatted logging
Can be used to determine if handling the exception should disable the cache or not.
appends the given reference code to the exception's message unless it is unset
Details
void
setRuntime(Runtime $runtime)
Sets the current Fusion runtime
protected Runtime
getRuntime()
Returns current Fusion runtime
string
handleRenderingException(string $fusionPath, Exception $exception)
Handle an Exception thrown while rendering Fusion
protected string
handle(string $fusionPath, Exception $exception, int $referenceCode)
renders the exception to nice html content element to display, edit, remove, .
..
protected string
formatScriptPath(string $fusionPath, string $delimiter, bool $escapeHtml = true)
breaks the given path to multiple line to allow a nicer formatted logging
example:
formatScriptPath('page
formatScriptPath('page
protected bool
exceptionDisablesCache(string $fusionPath, Exception $exception)
Can be used to determine if handling the exception should disable the cache or not.
protected string
getMessage(Exception $exception, $referenceCode)
appends the given reference code to the exception's message unless it is unset