TYPO3
7.6
|
Public Member Functions | |
handleException (\Exception $exception) | |
Public Member Functions inherited from ExceptionHandlerInterface | |
__construct () | |
echoExceptionWeb (\Exception $exception) | |
echoExceptionCLI (\Exception $exception) | |
Public Attributes | |
const | CONTEXT_WEB = 'WEB' |
const | CONTEXT_CLI = 'CLI' |
Protected Member Functions | |
writeLogEntries (\Exception $exception, $context) | |
writeLog ($logMessage) | |
sendStatusHeaders (\Exception $exception) | |
getDatabaseConnection () | |
An abstract exception handler
This file is a backport from TYPO3 Flow
Definition at line 25 of file AbstractExceptionHandler.php.
|
protected |
Gets the Database Object
Definition at line 151 of file AbstractExceptionHandler.php.
References $GLOBALS.
Referenced by AbstractExceptionHandler\writeLog().
handleException | ( | \Exception | $exception | ) |
Displays the given exception
\Exception | $exception | The exception object |
Implements ExceptionHandlerInterface.
Definition at line 36 of file AbstractExceptionHandler.php.
References ExceptionHandlerInterface\echoExceptionCLI(), and ExceptionHandlerInterface\echoExceptionWeb().
|
protected |
Sends the HTTP Status 500 code, if $exception is not a TYPO3 and headers are not sent, yet.
\Exception | $exception |
Definition at line 133 of file AbstractExceptionHandler.php.
Referenced by DebugExceptionHandler\echoExceptionWeb(), and ProductionExceptionHandler\echoExceptionWeb().
|
protected |
Writes an exception in the sys_log table
string | $logMessage | Default text that follows the message. |
Definition at line 96 of file AbstractExceptionHandler.php.
References $GLOBALS, AbstractExceptionHandler\getDatabaseConnection(), and GeneralUtility\getIndpEnv().
Referenced by AbstractExceptionHandler\writeLogEntries().
|
protected |
Writes exception to different logs
\Exception | $exception | The exception |
string | $context | The context where the exception was thrown, WEB or CLI |
Definition at line 55 of file AbstractExceptionHandler.php.
References GeneralUtility\devLog(), GeneralUtility\getIndpEnv(), GeneralUtility\SYSLOG_SEVERITY_FATAL, and AbstractExceptionHandler\writeLog().
Referenced by ProductionExceptionHandler\echoExceptionCLI(), DebugExceptionHandler\echoExceptionCLI(), DebugExceptionHandler\echoExceptionWeb(), and ProductionExceptionHandler\echoExceptionWeb().
const CONTEXT_CLI = 'CLI' |
Definition at line 28 of file AbstractExceptionHandler.php.
const CONTEXT_WEB = 'WEB' |
Definition at line 27 of file AbstractExceptionHandler.php.