ProductionExceptionHandler

class \TYPO3\CMS\Frontend\ContentObject\Exception\ProductionExceptionHandler

Implements
ExceptionHandlerInterface

Exception handler class for content object rendering

Table of Contents

Interfaces

ExceptionHandlerInterface
Interface ExceptionHandlerInterface

Properties

$configuration  : array
$context  : Context
$logger  : LoggerInterface
$random  : Random

Methods

__construct()  : mixed
handle()  : string
Handles exceptions thrown during rendering of content objects The handler can decide whether to re-throw the exception or return a nice error message for production context.
setConfiguration()  : void

Properties

$configuration

protected array $configuration = []

Methods

__construct()

public __construct(Context $context, Random $random, LoggerInterface $logger) : mixed

Parameters

$context : Context
$random : Random
$logger : LoggerInterface

handle()

Handles exceptions thrown during rendering of content objects The handler can decide whether to re-throw the exception or return a nice error message for production context.

public handle(Exception $exception[, AbstractContentObject|null $contentObject = null ][, array $contentObjectConfiguration = [] ]) : string

Parameters

$exception : Exception
$contentObject : AbstractContentObject|null = null
$contentObjectConfiguration : array = []

Tags

throws
Exception

Return values

string

setConfiguration()

public setConfiguration(array $configuration) : void

Parameters

$configuration : array
On this page