TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Core\Error\ProductionExceptionHandler Class Reference
Inheritance diagram for TYPO3\CMS\Core\Error\ProductionExceptionHandler:
TYPO3\CMS\Core\Error\AbstractExceptionHandler TYPO3\CMS\Core\Error\ExceptionHandlerInterface TYPO3\CMS\Core\SingletonInterface

Public Member Functions

 __construct ()
 
 echoExceptionWeb ($exception)
 
 echoExceptionCLI ($exception)
 
- Public Member Functions inherited from TYPO3\CMS\Core\Error\AbstractExceptionHandler
 handleException ($exception)
 

Protected Member Functions

 discloseExceptionInformation ($exception)
 
 getTitle ($exception)
 
 getMessage ($exception)
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Error\AbstractExceptionHandler
 writeLogEntries ($exception, $context)
 
 writeLog ($logMessage)
 
 sendStatusHeaders ($exception)
 
 anonymizeToken ($requestedUrl)
 
 getBackendUser ()
 
 getDatabaseConnection ()
 

Protected Attributes

 $defaultTitle = 'Oops, an error occurred!'
 
 $defaultMessage = ''
 

Additional Inherited Members

- Public Attributes inherited from TYPO3\CMS\Core\Error\AbstractExceptionHandler
const CONTEXT_WEB = 'WEB'
 
const CONTEXT_CLI = 'CLI'
 

Detailed Description

A quite exception handler which catches but ignores any exception.

This file is a backport from FLOW3

Definition at line 22 of file ProductionExceptionHandler.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Error\ProductionExceptionHandler::__construct ( )

Constructs this exception handler - registers itself as the default exception handler.

Implements TYPO3\CMS\Core\Error\ExceptionHandlerInterface.

Definition at line 41 of file ProductionExceptionHandler.php.

Member Function Documentation

◆ discloseExceptionInformation()

TYPO3\CMS\Core\Error\ProductionExceptionHandler::discloseExceptionInformation (   $exception)
protected

Determines, whether Exception details should be outputted

Parameters
\Exception | \Throwable$exceptionThe exception
Returns
bool #72293 This will change to only if we are >= PHP7.0 only

Definition at line 93 of file ProductionExceptionHandler.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Core\Error\ProductionExceptionHandler\getMessage(), and TYPO3\CMS\Core\Error\ProductionExceptionHandler\getTitle().

◆ echoExceptionCLI()

TYPO3\CMS\Core\Error\ProductionExceptionHandler::echoExceptionCLI (   $exception)

Echoes an exception for the command line.

Parameters
\Exception | \Throwable$exceptionThe exception
Returns
void #72293 This will change to only if we are >= PHP7.0 only

Implements TYPO3\CMS\Core\Error\ExceptionHandlerInterface.

Definition at line 72 of file ProductionExceptionHandler.php.

References TYPO3\CMS\Core\Error\AbstractExceptionHandler\writeLogEntries().

◆ echoExceptionWeb()

TYPO3\CMS\Core\Error\ProductionExceptionHandler::echoExceptionWeb (   $exception)

◆ getMessage()

TYPO3\CMS\Core\Error\ProductionExceptionHandler::getMessage (   $exception)
protected

Returns the message for the error message

Parameters
\Exception | \Throwable$exceptionException causing the error
Returns
string #72293 This will change to only if we are >= PHP7.0 only

Definition at line 136 of file ProductionExceptionHandler.php.

References TYPO3\CMS\Core\Error\ProductionExceptionHandler\$defaultMessage, and TYPO3\CMS\Core\Error\ProductionExceptionHandler\discloseExceptionInformation().

Referenced by TYPO3\CMS\Core\Error\ProductionExceptionHandler\echoExceptionWeb().

◆ getTitle()

TYPO3\CMS\Core\Error\ProductionExceptionHandler::getTitle (   $exception)
protected

Returns the title for the error message

Parameters
\Exception | \Throwable$exceptionException causing the error
Returns
string #72293 This will change to only if we are >= PHP7.0 only

Definition at line 120 of file ProductionExceptionHandler.php.

References TYPO3\CMS\Core\Error\ProductionExceptionHandler\$defaultTitle, and TYPO3\CMS\Core\Error\ProductionExceptionHandler\discloseExceptionInformation().

Referenced by TYPO3\CMS\Core\Error\ProductionExceptionHandler\echoExceptionWeb().

Member Data Documentation

◆ $defaultMessage

TYPO3\CMS\Core\Error\ProductionExceptionHandler::$defaultMessage = ''
protected

◆ $defaultTitle

TYPO3\CMS\Core\Error\ProductionExceptionHandler::$defaultTitle = 'Oops, an error occurred!'
protected