‪TYPO3CMS  10.4
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 (array $configuration=[])
 
string handle (\Exception $exception, AbstractContentObject $contentObject=null, $contentObjectConfiguration=[])
 

Protected Member Functions

 logException (\Exception $exception, $errorMessage, $code)
 

Protected Attributes

array $configuration = array( )
 

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

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\ContentObject\Exception\ProductionExceptionHandler::__construct ( array  $configuration = [])

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$contentObject
array$contentObjectConfiguration
Returns
‪string
Exceptions

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

Definition at line 56 of file ProductionExceptionHandler.php.

References TYPO3\CMS\Frontend\ContentObject\Exception\ProductionExceptionHandler\logException().

◆ logException()

TYPO3\CMS\Frontend\ContentObject\Exception\ProductionExceptionHandler::logException ( \Exception  $exception,
  $errorMessage,
  $code 
)
protected
Parameters
\Exception$exception
string$errorMessage
string$code

Definition at line 81 of file ProductionExceptionHandler.php.

Referenced by TYPO3\CMS\Frontend\ContentObject\Exception\ProductionExceptionHandler\handle().

Member Data Documentation

◆ $configuration

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