‪TYPO3CMS  11.5
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 (Context $context, Random $random, LoggerInterface $logger)
 
 setConfiguration (array $configuration)
 
string handle (\Exception $exception, AbstractContentObject $contentObject=null, $contentObjectConfiguration=[])
 

Protected Attributes

array $configuration = []
 
Context $context
 
Random $random
 
LoggerInterface $logger
 

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 31 of file ProductionExceptionHandler.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ handle()

string 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
\Exception$exception
AbstractContentObject | null$contentObject
array$contentObjectConfiguration
Returns
‪string
Exceptions

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

Definition at line 62 of file ProductionExceptionHandler.php.

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

◆ setConfiguration()

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

Member Data Documentation

◆ $configuration

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

◆ $context

Context TYPO3\CMS\Frontend\ContentObject\Exception\ProductionExceptionHandler::$context
protected

◆ $logger

LoggerInterface TYPO3\CMS\Frontend\ContentObject\Exception\ProductionExceptionHandler::$logger
protected

◆ $random

Random TYPO3\CMS\Frontend\ContentObject\Exception\ProductionExceptionHandler::$random
protected