TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Error\ExceptionHandlerInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Core\Error\ExceptionHandlerInterface:
t3lib_error_ExceptionHandlerInterface TYPO3\CMS\Core\Error\AbstractExceptionHandler t3lib_error_AbstractExceptionHandler TYPO3\CMS\Core\Error\DebugExceptionHandler TYPO3\CMS\Core\Error\ProductionExceptionHandler t3lib_error_DebugExceptionHandler t3lib_error_ProductionExceptionHandler

Public Member Functions

 __construct ()
 
 handleException (\Exception $exception)
 
 echoExceptionWeb (\Exception $exception)
 
 echoExceptionCLI (\Exception $exception)
 

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! Contract for an exception handler

This file is a backport from FLOW3

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

Definition at line 23 of file ExceptionHandlerInterface.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Error\ExceptionHandlerInterface::__construct ( )

Constructs this exception handler - registers itself as the default exception handler.

Implemented in TYPO3\CMS\Core\Error\ProductionExceptionHandler, and TYPO3\CMS\Core\Error\DebugExceptionHandler.

Member Function Documentation

◆ echoExceptionCLI()

TYPO3\CMS\Core\Error\ExceptionHandlerInterface::echoExceptionCLI ( \Exception  $exception)

Formats and echoes the exception for the command line

Parameters
\Exception$exceptionThe exception object
Returns
void

Implemented in TYPO3\CMS\Core\Error\DebugExceptionHandler, and TYPO3\CMS\Core\Error\ProductionExceptionHandler.

Referenced by TYPO3\CMS\Core\Error\AbstractExceptionHandler\handleException().

◆ echoExceptionWeb()

TYPO3\CMS\Core\Error\ExceptionHandlerInterface::echoExceptionWeb ( \Exception  $exception)

Formats and echoes the exception as XHTML.

Parameters
\Exception$exceptionThe exception object
Returns
void

Implemented in TYPO3\CMS\Core\Error\ProductionExceptionHandler, and TYPO3\CMS\Core\Error\DebugExceptionHandler.

Referenced by TYPO3\CMS\Core\Error\AbstractExceptionHandler\handleException().

◆ handleException()

TYPO3\CMS\Core\Error\ExceptionHandlerInterface::handleException ( \Exception  $exception)

Handles the given exception

Parameters
\Exception$exception,The exception object
Returns
void

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