TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
ErrorHandlerInterface Interface Reference
Inheritance diagram for ErrorHandlerInterface:
ErrorHandler

Public Member Functions

 __construct ($errorHandlerErrors)
 
 setExceptionalErrors ($exceptionalErrors)
 
 handleError ($errorLevel, $errorMessage, $errorFile, $errorLine)
 

Detailed Description

Error handler interface for TYPO3

This file is a backport from TYPO3 Flow

Definition at line 22 of file ErrorHandlerInterface.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

Implemented in ErrorHandler.

Member Function Documentation

handleError (   $errorLevel,
  $errorMessage,
  $errorFile,
  $errorLine 
)

Handles an error. If the error is registered as exceptionalError it will by converted into an exception, to be handled by the configured exceptionhandler. Additionally the error message is written to the configured logs. If TYPO3_MODE is 'BE' the error message is also added to the flashMessageQueue, in FE the error message is displayed in the admin panel (as TsLog message)

Parameters
int$errorLevelThe error level - one of the E_* constants
string$errorMessageThe error message
string$errorFileName of the file the error occurred in
int$errorLineLine number where the error occurred
Returns
bool
Exceptions
TYPO3 with the data passed to this method if the error is registered as exceptionalError
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

Implemented in ErrorHandler.