ProductionExceptionHandler implements ExceptionHandlerInterface
Exception handler class for content object rendering
this is a concrete TYPO3 implementation and solely used for EXT:frontend and not part of TYPO3's Core API.
Table of Contents
Interfaces
- ExceptionHandlerInterface
- Interface ExceptionHandlerInterface
Properties
- $configuration : array<string|int, mixed>
- $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
- Used to pass the TypoScript configuration to the exception handler
Properties
$configuration
protected
array<string|int, mixed>
$configuration
= []
$context
protected
Context
$context
$logger
protected
LoggerInterface
$logger
$random
protected
Random
$random
Methods
__construct()
public
__construct(Context $context, Random $random, LoggerInterface $logger) : mixed
Parameters
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<string|int, mixed> $contentObjectConfiguration = [] ]) : string
Parameters
- $exception : Exception
- $contentObject : AbstractContentObject|null = null
- $contentObjectConfiguration : array<string|int, mixed> = []
Tags
Return values
stringsetConfiguration()
Used to pass the TypoScript configuration to the exception handler
public
setConfiguration(array<string|int, mixed> $configuration) : void
Parameters
- $configuration : array<string|int, mixed>