‪TYPO3CMS  ‪main
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, string $mode)
 
 writeLog (string $logMessage)
 
 sendStatusHeaders (\Throwable $exception)
 
 getBackendUser ()
 
 anonymizeToken (string $requestedUrl)
 

Protected Attributes

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

Additional Inherited Members

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

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

Member Function Documentation

◆ discloseExceptionInformation()

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

◆ 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 74 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 132 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 118 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 39 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 33 of file ProductionExceptionHandler.php.

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