‪TYPO3CMS  10.4
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 (\Throwable $exception)
 
 echoExceptionCLI (\Throwable $exception)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Error\AbstractExceptionHandler
 handleException (\Throwable $exception)
 

Protected Member Functions

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

Protected Attributes

string $defaultTitle = 'Oops, an error occurred!'
 
string $defaultMessage = ''
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Error\AbstractExceptionHandler
 $logExceptionStackTrace = false
 

Additional Inherited Members

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

Detailed Description

An exception handler which catches any exception and renders an error page without backtrace (Web) or a slim message on CLI.

Definition at line 29 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 46 of file ProductionExceptionHandler.php.

Member Function Documentation

◆ discloseExceptionInformation()

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

Determines, whether Exception details should be outputted

Parameters
\Throwable$exception‪The throwable object.
Returns
‪bool

Definition at line 90 of file ProductionExceptionHandler.php.

References $GLOBALS.

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

◆ echoExceptionCLI()

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

Echoes an exception for the command line.

Parameters
\Throwable$exception‪The throwable object.

Implements TYPO3\CMS\Core\Error\ExceptionHandlerInterface.

Definition at line 73 of file ProductionExceptionHandler.php.

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

◆ echoExceptionWeb()

◆ getMessage()

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

Returns the message for the error message

Parameters
\Throwable$exception‪The throwable object.
Returns
‪string

Definition at line 130 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()

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

Returns the title for the error message

Parameters
\Throwable$exception‪The throwable object.
Returns
‪string

Definition at line 116 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

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

Default message for error messages

Definition at line 41 of file ProductionExceptionHandler.php.

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

◆ $defaultTitle

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

Default title for error messages

Definition at line 35 of file ProductionExceptionHandler.php.

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