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

Public Member Functions

string handle (\Exception $exception, ?AbstractContentObject $contentObject=null, $contentObjectConfiguration=[])
 
 setConfiguration (array $configuration)
 

Detailed Description

Interface ExceptionHandlerInterface

Definition at line 23 of file ExceptionHandlerInterface.php.

Member Function Documentation

◆ handle()

string TYPO3\CMS\Frontend\ContentObject\Exception\ExceptionHandlerInterface::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
array$contentObjectConfiguration
Returns
‪string

Implemented in TYPO3\CMS\Frontend\ContentObject\Exception\ProductionExceptionHandler.

◆ setConfiguration()

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

Used to pass the TypoScript configuration to the exception handler

Implemented in TYPO3\CMS\Frontend\ContentObject\Exception\ProductionExceptionHandler.