TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ProductionExceptionHandler Class Reference
Inheritance diagram for ProductionExceptionHandler:
AbstractExceptionHandler ExceptionHandlerInterface SingletonInterface

Public Member Functions

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

Protected Member Functions

 discloseExceptionInformation (\Exception $exception)
 
 getTitle (\Exception $exception)
 
 getMessage (\Exception $exception)
 
- Protected Member Functions inherited from 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 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 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 41 of file core/Classes/Error/ProductionExceptionHandler.php.

Member Function Documentation

discloseExceptionInformation ( \Exception  $exception)
protected

Determines, whether Exception details should be outputted

Parameters
\Exception$exceptionThe exception
Returns
bool

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

References $GLOBALS.

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

echoExceptionCLI ( \Exception  $exception)

Echoes an exception for the command line.

Parameters
\Exception$exceptionThe exception
Returns
void

Implements ExceptionHandlerInterface.

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

References AbstractExceptionHandler\writeLogEntries().

echoExceptionWeb ( \Exception  $exception)
getMessage ( \Exception  $exception)
protected

Returns the message for the error message

Parameters
\Exception$exceptionException causing the error
Returns
string

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

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

Referenced by ProductionExceptionHandler\echoExceptionWeb().

getTitle ( \Exception  $exception)
protected

Returns the title for the error message

Parameters
\Exception$exceptionException causing the error
Returns
string

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