![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct ($errorHandlerErrors) | |
setExceptionalErrors ($exceptionalErrors) | |
handleError ($errorLevel, $errorMessage, $errorFile, $errorLine) | |
Error handler interface for TYPO3
This file is a backport from TYPO3 Flow
Definition at line 22 of file ErrorHandlerInterface.php.
__construct | ( | $errorHandlerErrors | ) |
Registers this class as default error handler
int | $errorHandlerErrors | The integer representing the E_* error level which should be |
Implemented in ErrorHandler.
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)
int | $errorLevel | The error level - one of the E_* constants |
string | $errorMessage | The error message |
string | $errorFile | Name of the file the error occurred in |
int | $errorLine | Line number where the error occurred |
\TYPO3\CMS\Core\Error\Exception | 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.
int | $exceptionalErrors | The integer representing the E_* error level to handle as exceptions |
Implemented in ErrorHandler.