TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Core\Error\ExceptionHandlerInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Core\Error\ExceptionHandlerInterface:
TYPO3\CMS\Core\Error\AbstractExceptionHandler TYPO3\CMS\Core\Error\DebugExceptionHandler TYPO3\CMS\Core\Error\ProductionExceptionHandler

Public Member Functions

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

Detailed Description

Contract for an exception handler

This file is a backport from TYPO3 Flow

Definition at line 22 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)

Formats and echoes the exception for the command line

Parameters
\Exception | \Throwable$exceptionThe exception(PHP 5.x) or throwable(PHP >= 7.0) object.
Returns
void #72293 This will change to only if we are >= PHP7.0 only

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)

Formats and echoes the exception as XHTML.

Parameters
\Exception | \Throwable$exceptionThe exception(PHP 5.x) or throwable(PHP >= 7.0) object.
Returns
void #72293 This will change to only if we are >= PHP7.0 only

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)

Handles the given exception

Parameters
\Exception | \Throwable$exceptionThe exception(PHP 5.x) or throwable(PHP >= 7.0) object.
Returns
void #72293 This will change to only if we are >= PHP7.0 only

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