AbsorbingHandler
class AbsorbingHandler extends AbstractRenderingExceptionHandler (View source)
Renders the element as an empty string
Properties
protected Runtime | $runtime | Current Fusion runtime |
from AbstractRenderingExceptionHandler |
protected LoggerInterface | $systemLogger | ||
protected ThrowableStorageInterface | $throwableStorage |
Methods
Handle an Exception thrown while rendering Fusion
breaks the given path to multiple line to allow a nicer formatted logging
The absorbing handler is meant to catch loose evaluation errors (like missing assets) in a useful way, therefor caching is desired.
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)
Returns an empty 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
formatScriptPath('page
protected bool
exceptionDisablesCache(string $fusionPath, Exception $exception)
The absorbing handler is meant to catch loose evaluation errors (like missing assets) in a useful way, therefor caching is desired.