TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
ProductionExceptionHandler Class Reference
Inheritance diagram for ProductionExceptionHandler:
AbstractExceptionHandler ExceptionHandlerInterface SingletonInterface

Public Member Functions

 __construct ()
 
 echoExceptionWeb (\Throwable $exception)
 
 echoExceptionCLI (\Throwable $exception)
 
- Public Member Functions inherited from AbstractExceptionHandler
 handleException (\Throwable $exception)
 

Protected Member Functions

 discloseExceptionInformation (\Throwable $exception)
 
 getTitle (\Throwable $exception)
 
 getMessage (\Throwable $exception)
 
- Protected Member Functions inherited from AbstractExceptionHandler
 writeLogEntries (\Throwable $exception, $context)
 
 writeLog ($logMessage)
 
 sendStatusHeaders (\Throwable $exception)
 
 getBackendUser ()
 

Protected Attributes

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

Additional Inherited Members

- Public Attributes inherited from 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 25 of file core/Classes/Error/ProductionExceptionHandler.php.

Constructor & Destructor Documentation

__construct ( )

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

Implements ExceptionHandlerInterface.

Definition at line 44 of file core/Classes/Error/ProductionExceptionHandler.php.

Member Function Documentation

discloseExceptionInformation ( \Throwable  $exception)
protected

Determines, whether Exception details should be outputted

Parameters
\Throwable$exceptionThe throwable object.
Returns
bool

Definition at line 90 of file core/Classes/Error/ProductionExceptionHandler.php.

References $GLOBALS.

Referenced by ProductionExceptionHandler\echoExceptionWeb(), ProductionExceptionHandler\getMessage(), and ProductionExceptionHandler\getTitle().

echoExceptionCLI ( \Throwable  $exception)

Echoes an exception for the command line.

Parameters
\Throwable$exceptionThe throwable object.
Returns
void

Implements ExceptionHandlerInterface.

Definition at line 73 of file core/Classes/Error/ProductionExceptionHandler.php.

References AbstractExceptionHandler\writeLogEntries().

getMessage ( \Throwable  $exception)
protected

Returns the message for the error message

Parameters
\Throwable$exceptionThe throwable object.
Returns
string

Definition at line 131 of file core/Classes/Error/ProductionExceptionHandler.php.

References ProductionExceptionHandler\$defaultMessage, and ProductionExceptionHandler\discloseExceptionInformation().

Referenced by ProductionExceptionHandler\echoExceptionWeb().

getTitle ( \Throwable  $exception)
protected

Returns the title for the error message

Parameters
\Throwable$exceptionThe throwable object.
Returns
string

Definition at line 116 of file core/Classes/Error/ProductionExceptionHandler.php.

References ProductionExceptionHandler\$defaultTitle, and ProductionExceptionHandler\discloseExceptionInformation().

Referenced by ProductionExceptionHandler\echoExceptionWeb().

Member Data Documentation

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