|
TYPO3 API
SVNRelease
|
00001 <?php 00002 /*************************************************************** 00003 * Copyright notice 00004 * 00005 * (c) 2009-2011 Ingo Renner <ingo@typo3.org> 00006 * All rights reserved 00007 * 00008 * This script is part of the TYPO3 project. The TYPO3 project is 00009 * free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * The GNU General Public License can be found at 00015 * http://www.gnu.org/copyleft/gpl.html. 00016 * 00017 * This script is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * This copyright notice MUST APPEAR in all copies of the script! 00023 ***************************************************************/ 00024 00025 00026 /** 00027 * Error handler interface for TYPO3 00028 * 00029 * This file is a backport from FLOW3 00030 * 00031 * @package TYPO3 00032 * @subpackage t3lib_error 00033 * @version $Id: interface.t3lib_error_errorhandlerinterface.php 10121 2011-01-18 20:15:30Z ohader $ 00034 */ 00035 interface t3lib_error_ErrorHandlerInterface { 00036 00037 /** 00038 * Registers this class as default error handler 00039 * 00040 * @param integer The integer representing the E_* error level which should be 00041 * handled by the registered error handler. 00042 * @return void 00043 */ 00044 public function __construct($errorHandlerErrors); 00045 00046 /** 00047 * Defines which error levels should result in an exception thrown. 00048 * 00049 * @param integer The integer representing the E_* error level to handle as exceptions 00050 * @return void 00051 */ 00052 public function setExceptionalErrors($exceptionalErrors); 00053 00054 /** 00055 * Handles an error. 00056 * If the error is registered as exceptionalError it will by converted into an exception, to be handled 00057 * by the configured exceptionhandler. Additionall the error message is written to the configured logs. 00058 * If TYPO3_MODE is 'BE' the error message is also added to the flashMessageQueue, in FE the error message 00059 * is displayed in the admin panel (as TsLog message) 00060 * 00061 * @param integer The error level - one of the E_* constants 00062 * @param string The error message 00063 * @param string Name of the file the error occurred in 00064 * @param integer Line number where the error occurred 00065 * @return void 00066 * @throws t3lib_error_Exception with the data passed to this method if the error is registered as exceptionalError 00067 */ 00068 public function handleError($errorLevel, $errorMessage, $errorFile, $errorLine); 00069 } 00070 00071 ?>
1.8.0