![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct () | |
echoExceptionWeb (\Exception $exception) | |
echoExceptionCLI (\Exception $exception) | |
![]() | |
handleException (\Exception $exception) | |
Protected Member Functions | |
getBacktraceCode (array $trace) | |
getCodeSnippet ($filePathAndName, $lineNumber) | |
![]() | |
writeLogEntries (\Exception $exception, $context) | |
writeLog ($logMessage) | |
sendStatusHeaders (\Exception $exception) | |
getDatabaseConnection () | |
Additional Inherited Members | |
![]() | |
const | CONTEXT_WEB = 'WEB' |
const | CONTEXT_CLI = 'CLI' |
A basic but solid exception handler which catches everything which falls through the other exception handlers and provides useful debugging information.
This file is a backport from TYPO3 Flow
Definition at line 24 of file DebugExceptionHandler.php.
__construct | ( | ) |
Constructs this exception handler - registers itself as the default exception handler.
Implements ExceptionHandlerInterface.
Definition at line 29 of file DebugExceptionHandler.php.
echoExceptionCLI | ( | \Exception | $exception | ) |
Formats and echoes the exception for the command line
\Exception | $exception | The exception object |
Implements ExceptionHandlerInterface.
Definition at line 118 of file DebugExceptionHandler.php.
References AbstractExceptionHandler\writeLogEntries().
echoExceptionWeb | ( | \Exception | $exception | ) |
Formats and echoes the exception as XHTML.
\Exception | $exception | The exception object |
Implements ExceptionHandlerInterface.
Definition at line 40 of file DebugExceptionHandler.php.
References DebugExceptionHandler\getBacktraceCode(), GeneralUtility\getIndpEnv(), AbstractExceptionHandler\sendStatusHeaders(), and AbstractExceptionHandler\writeLogEntries().
|
protected |
Renders some backtrace
array | $trace | The trace |
Definition at line 138 of file DebugExceptionHandler.php.
References elseif, and DebugExceptionHandler\getCodeSnippet().
Referenced by DebugExceptionHandler\echoExceptionWeb().
|
protected |
Returns a code snippet from the specified file.
string | $filePathAndName | Absolute path and file name of the PHP file |
int | $lineNumber | Line number defining the center of the code snippet |
Definition at line 192 of file DebugExceptionHandler.php.
Referenced by DebugExceptionHandler\getBacktraceCode().