TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ErrorHandler Class Reference
Inheritance diagram for ErrorHandler:
ErrorHandlerInterface

Public Member Functions

 __construct ($errorHandlerErrors)
 
 setExceptionalErrors ($exceptionalErrors)
 
 setDebugMode ($debugMode)
 
- Public Member Functions inherited from ErrorHandlerInterface
 handleError ($errorLevel, $errorMessage, $errorFile, $errorLine)
 

Protected Member Functions

 writeLog ($logMessage, $severity)
 

Protected Attributes

 $exceptionalErrors = array()
 
 $debugMode = false
 

Detailed Description

Global error handler for TYPO3

This file is a backport from TYPO3 Flow

Definition at line 24 of file ErrorHandler.php.

Constructor & Destructor Documentation

__construct (   $errorHandlerErrors)

Registers this class as default error handler

Parameters
int$errorHandlerErrorsThe integer representing the E_* error level which should be

Implements ErrorHandlerInterface.

Definition at line 45 of file ErrorHandler.php.

Member Function Documentation

setDebugMode (   $debugMode)
Parameters
bool$debugMode

Definition at line 67 of file ErrorHandler.php.

References ErrorHandler\$debugMode.

setExceptionalErrors (   $exceptionalErrors)

Defines which error levels should result in an exception thrown.

Parameters
int$exceptionalErrorsThe integer representing the E_* error level to handle as exceptions
Returns
void

Implements ErrorHandlerInterface.

Definition at line 59 of file ErrorHandler.php.

References ErrorHandler\$exceptionalErrors.

writeLog (   $logMessage,
  $severity 
)
protected

Writes an error in the sys_log table

Parameters
string$logMessageDefault text that follows the message (in english!).
int$severityThe error level of the message (0 = OK, 1 = warning, 2 = error)
Returns
void

Definition at line 181 of file ErrorHandler.php.

References GeneralUtility\getIndpEnv().

Member Data Documentation

$debugMode = false
protected

Definition at line 38 of file ErrorHandler.php.

Referenced by ErrorHandler\setDebugMode().

$exceptionalErrors = array()
protected

Definition at line 31 of file ErrorHandler.php.

Referenced by ErrorHandler\setExceptionalErrors().