|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Abstract Slim application error handler. More...
Inheritance diagram for Slim\Handlers\AbstractError:
Collaboration diagram for Slim\Handlers\AbstractError: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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Render error as Text.
| \Exception | \Throwable | $throwable |
Definition at line 63 of file AbstractError.php.
References $code, $message, $text, and PHP_EOL.
Referenced by Slim\Handlers\AbstractError\writeToErrorLog().
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 19 of file AbstractError.php.
Referenced by Slim\Handlers\AbstractError\__construct().