TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
ExceptionHandlerInterface Interface Reference
Inheritance diagram for ExceptionHandlerInterface:
AbstractExceptionHandler DebugExceptionHandler ProductionExceptionHandler

Public Member Functions

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

Detailed Description

Contract for an exception handler

This file is a backport from TYPO3 Flow

Definition at line 22 of file core/Classes/Error/ExceptionHandlerInterface.php.

Constructor & Destructor Documentation

__construct ( )

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

Implemented in ProductionExceptionHandler, and DebugExceptionHandler.

Member Function Documentation

echoExceptionCLI ( \Throwable  $exception)

Formats and echoes the exception for the command line

Parameters
\Throwable$exceptionThe throwable object.
Returns
void

Implemented in DebugExceptionHandler, and ProductionExceptionHandler.

Referenced by AbstractExceptionHandler\handleException().

echoExceptionWeb ( \Throwable  $exception)

Formats and echoes the exception as XHTML.

Parameters
\Throwable$exceptionThe throwable object.
Returns
void

Implemented in ProductionExceptionHandler, and DebugExceptionHandler.

Referenced by AbstractExceptionHandler\handleException().

handleException ( \Throwable  $exception)

Handles the given exception

Parameters
\Throwable$exceptionThe throwable object.
Returns
void

Implemented in AbstractExceptionHandler.