TYPO3 CMS  TYPO3_6-2
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 t3lib_error_ProductionExceptionHandler

Public Member Functions

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

Protected Member Functions

 discloseExceptionInformation (\Exception $exception)
 
 getTitle (\Exception $exception)
 
 getMessage (\Exception $exception)
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Error\AbstractExceptionHandler
 writeLogEntries (\Exception $exception, $context)
 
 writeLog ($logMessage)
 
 sendStatusHeaders (\Exception $exception)
 
 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

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! A quite exception handler which catches but ignores any exception.

This file is a backport from FLOW3

Author
Ingo Renner ingo@.nosp@m.typo.nosp@m.3.org

Definition at line 24 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.

Author
Robert Lemke rober.nosp@m.t@ty.nosp@m.po3.o.nosp@m.rg

Implements TYPO3\CMS\Core\Error\ExceptionHandlerInterface.

Definition at line 45 of file ProductionExceptionHandler.php.

Member Function Documentation

◆ discloseExceptionInformation()

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

Determines, whether Exception details should be outputted

Parameters
\Exception$exceptionThe exception
Returns
boolean

Definition at line 91 of file ProductionExceptionHandler.php.

References $GLOBALS, and TYPO3_MODE.

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

◆ echoExceptionCLI()

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

Echoes an exception for the command line.

Parameters
\Exception$exceptionThe exception
Returns
void

Implements TYPO3\CMS\Core\Error\ExceptionHandlerInterface.

Definition at line 72 of file ProductionExceptionHandler.php.

References die, and TYPO3\CMS\Core\Error\AbstractExceptionHandler\writeLogEntries().

◆ echoExceptionWeb()

◆ getMessage()

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

Returns the message for the error message

Parameters
\Exception$exceptionException causing the error
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()

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

Returns the title for the error message

Parameters
\Exception$exceptionException causing the error
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

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

◆ $defaultTitle

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