‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\ContentObject\Exception\ProductionExceptionHandler Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\ContentObject\Exception\ProductionExceptionHandler:
TYPO3\CMS\Frontend\ContentObject\Exception\ExceptionHandlerInterface

Public Member Functions

 __construct (protected Context $context, protected Random $random, protected LoggerInterface $logger, protected RequestId $requestId)
 
 setConfiguration (array $configuration)
 
 handle (\Exception $exception, AbstractContentObject $contentObject=null, $contentObjectConfiguration=[])
 

Protected Attributes

array $configuration = []
 

Detailed Description

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.

Definition at line 32 of file ProductionExceptionHandler.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\ContentObject\Exception\ProductionExceptionHandler::__construct ( protected Context  $context,
protected Random  $random,
protected LoggerInterface  $logger,
protected RequestId  $requestId 
)

Definition at line 36 of file ProductionExceptionHandler.php.

Member Function Documentation

◆ handle()

TYPO3\CMS\Frontend\ContentObject\Exception\ProductionExceptionHandler::handle ( \Exception  $exception,
AbstractContentObject  $contentObject = null,
  $contentObjectConfiguration = [] 
)

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.

Parameters
AbstractContentObject | null$contentObject
array$contentObjectConfiguration
Exceptions

Implements TYPO3\CMS\Frontend\ContentObject\Exception\ExceptionHandlerInterface.

Definition at line 57 of file ProductionExceptionHandler.php.

References TYPO3\CMS\Core\Error\AbstractExceptionHandler\IGNORED_HMAC_EXCEPTION_CODES.

◆ setConfiguration()

TYPO3\CMS\Frontend\ContentObject\Exception\ProductionExceptionHandler::setConfiguration ( array  $configuration)

Used to pass the TypoScript configuration to the exception handler

Implements TYPO3\CMS\Frontend\ContentObject\Exception\ExceptionHandlerInterface.

Definition at line 43 of file ProductionExceptionHandler.php.

References TYPO3\CMS\Frontend\ContentObject\Exception\ProductionExceptionHandler\$configuration.

Member Data Documentation

◆ $configuration

array TYPO3\CMS\Frontend\ContentObject\Exception\ProductionExceptionHandler::$configuration = []
protected