TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Error\ErrorHandlerInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Core\Error\ErrorHandlerInterface:
t3lib_error_ErrorHandlerInterface TYPO3\CMS\Core\Error\ErrorHandler t3lib_error_ErrorHandler

Public Member Functions

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

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! Error handler interface for TYPO3

This file is a backport from FLOW3

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

Definition at line 23 of file ErrorHandlerInterface.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Error\ErrorHandlerInterface::__construct (   $errorHandlerErrors)

Registers this class as default error handler

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

Implemented in TYPO3\CMS\Core\Error\ErrorHandler.

Member Function Documentation

◆ handleError()

TYPO3\CMS\Core\Error\ErrorHandlerInterface::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

Referenced by TYPO3\CMS\Core\Error\ErrorHandler\setExceptionalErrors().

◆ setExceptionalErrors()

TYPO3\CMS\Core\Error\ErrorHandlerInterface::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 TYPO3\CMS\Core\Error\ErrorHandler.