Fixed bug #14312: Notice undefined index systemLog and undefined constant TYPO3_ERROR...
[Packages/TYPO3.CMS.git] / t3lib / error / interface.t3lib_error_exceptionhandlerinterface.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 2009 Ingo Renner <ingo@typo3.org>
6 * All rights reserved
7 *
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 *
17 * This script is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * This copyright notice MUST APPEAR in all copies of the script!
23 ***************************************************************/
24
25
26
27 /**
28 * Contract for an exception handler
29 *
30 * This file is a backport from FLOW3
31 *
32 * @package TYPO3
33 * @subpackage t3lib_error
34 * @version $Id$
35 */
36 interface t3lib_error_ExceptionHandlerInterface {
37
38 /**
39 * Constructs this exception handler - registers itself as the default exception handler.
40 */
41 public function __construct();
42
43 /**
44 * Handles the given exception
45 *
46 * @param Exception $exception: The exception object
47 * @return void
48 */
49 public function handleException(Exception $exception);
50
51 /**
52 * Formats and echoes the exception as XHTML.
53 *
54 * @param Exception $exception The exception object
55 * @return void
56 */
57 public function echoExceptionWeb(Exception $exception);
58
59 /**
60 * Formats and echoes the exception for the command line
61 *
62 * @param Exception $exception The exception object
63 * @return void
64 */
65 public function echoExceptionCLI(Exception $exception);
66
67 }
68
69 ?>