HtmlMessageHandler
class HtmlMessageHandler extends AbstractRenderingExceptionHandler (View source)
Renders the exception as HTML.
Properties
protected Runtime | $runtime | Current Fusion runtime |
from AbstractRenderingExceptionHandler |
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.
No description
No description
No description
Renders a message depicting the user where to find further information for the given reference code.
Renders an indented multi-line stack-trace for the given Fusion path.
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 in HTML for display
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.
injectLogger(LoggerInterface $logger)
No description
injectThrowableStorage(ThrowableStorageInterface $throwableStorage)
No description
__construct(bool $renderTechnicalDetails = true)
No description
protected string
formatErrorCodeMessage(int $referenceCode)
Renders a message depicting the user where to find further information for the given reference code.
protected string
formatFusionPath(string $fusionPath)
Renders an indented multi-line stack-trace for the given Fusion path.
example:
default
is rendered as
default