TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ProductionExceptionHandler Class Reference
Inheritance diagram for ProductionExceptionHandler:
ExceptionHandlerInterface

Public Member Functions

 __construct (array $configuration=array())
 
 handle (\Exception $exception, AbstractContentObject $contentObject=null, $contentObjectConfiguration=array())
 

Protected Member Functions

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

Protected Attributes

 $configuration = array()
 

Detailed Description

Exception handler class for content object rendering

Definition at line 25 of file frontend/Classes/ContentObject/Exception/ProductionExceptionHandler.php.

Constructor & Destructor Documentation

__construct ( array  $configuration = array())

Member Function Documentation

getLogger ( )
protected
handle ( \Exception  $exception,
AbstractContentObject  $contentObject = null,
  $contentObjectConfiguration = array() 
)

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
\Exception

Implements ExceptionHandlerInterface.

Definition at line 51 of file frontend/Classes/ContentObject/Exception/ProductionExceptionHandler.php.

References GeneralUtility\getRandomHexString(), and ProductionExceptionHandler\logException().

logException ( \Exception  $exception,
  $errorMessage,
  $code 
)
protected
Parameters
\Exception$exception
string$errorMessage
string$code

Definition at line 71 of file frontend/Classes/ContentObject/Exception/ProductionExceptionHandler.php.

References ProductionExceptionHandler\getLogger().

Referenced by ProductionExceptionHandler\handle().

Member Data Documentation

$configuration = array()
protected