class PlainTextHandler extends AbstractRenderingExceptionHandler (View source)

Creates text representations of the given exceptions.

Properties

protected Runtime $runtime

Current Fusion runtime

from  AbstractRenderingExceptionHandler

Methods

void
setRuntime(Runtime $runtime)

Sets the current Fusion runtime

getRuntime()

Returns current Fusion runtime

string
handleRenderingException(string $fusionPath, Exception $exception)

Handle an Exception thrown while rendering Fusion

string
handle(string $fusionPath, Exception $exception, string|null $referenceCode)

Handles an Exception thrown while rendering Fusion

string
formatScriptPath(string $fusionPath, string $delimiter, bool $escapeHtml = true)

breaks the given path to multiple line to allow a nicer formatted logging

bool
exceptionDisablesCache(string $fusionPath, Exception $exception)

Can be used to determine if handling the exception should disable the cache or not.

Details

void setRuntime(Runtime $runtime)

Sets the current Fusion runtime

Parameters

Runtime $runtime

Return Value

void

protected Runtime getRuntime()

Returns current Fusion runtime

Return Value

Runtime

string handleRenderingException(string $fusionPath, Exception $exception)

Handle an Exception thrown while rendering Fusion

Parameters

string $fusionPath
Exception $exception

Return Value

string

Exceptions

Exception

protected string handle(string $fusionPath, Exception $exception, string|null $referenceCode)

Handles an Exception thrown while rendering Fusion

Parameters

string $fusionPath

path causing the exception

Exception $exception

exception to handle

string|null $referenceCode

Return Value

string

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/body