ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Abstract Slim application error handler. More...
Public Member Functions | |
__construct ($displayErrorDetails=false) | |
Constructor. More... | |
Protected Member Functions | |
writeToErrorLog ($throwable) | |
Write to the error log if displayErrorDetails is false. More... | |
renderThrowableAsText ($throwable) | |
Render error as Text. More... | |
logError ($message) | |
Wraps the error_log function so that this can be easily tested. More... | |
Protected Member Functions inherited from Slim\Handlers\AbstractHandler | |
determineContentType (ServerRequestInterface $request) | |
Determine which content type we know about is wanted using Accept header. More... | |
Protected Attributes | |
$displayErrorDetails | |
Protected Attributes inherited from Slim\Handlers\AbstractHandler | |
$knownContentTypes | |
Abstract Slim application error handler.
Definition at line 14 of file AbstractError.php.
Slim\Handlers\AbstractError::__construct | ( | $displayErrorDetails = false | ) |
Constructor.
bool | $displayErrorDetails | Set to true to display full details |
Definition at line 26 of file AbstractError.php.
References Slim\Handlers\AbstractError\$displayErrorDetails.
|
protected |
Wraps the error_log function so that this can be easily tested.
$message |
Definition at line 95 of file AbstractError.php.
References $message, and Monolog\Handler\error_log().
Referenced by Slim\Handlers\AbstractError\writeToErrorLog().
|
protected |
Render error as Text.
\Exception | \Throwable | $throwable |
Definition at line 63 of file AbstractError.php.
References $code, $file, $message, $text, and PHP_EOL.
Referenced by Slim\Handlers\AbstractError\writeToErrorLog().
|
protected |
Write to the error log if displayErrorDetails is false.
\Exception | \Throwable | $throwable |
Definition at line 38 of file AbstractError.php.
References $message, Slim\Handlers\AbstractError\logError(), PHP_EOL, and Slim\Handlers\AbstractError\renderThrowableAsText().
Referenced by Slim\Handlers\Error\__invoke(), and Slim\Handlers\PhpError\__invoke().
|
protected |
Definition at line 19 of file AbstractError.php.
Referenced by Slim\Handlers\AbstractError\__construct().