|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Default Slim application error handler. More...
Inheritance diagram for Slim\Handlers\Error:
Collaboration diagram for Slim\Handlers\Error:Public Member Functions | |
| __invoke (ServerRequestInterface $request, ResponseInterface $response, \Exception $exception) | |
| Invoke error handler. More... | |
Public Member Functions inherited from Slim\Handlers\AbstractError | |
| __construct ($displayErrorDetails=false) | |
| Constructor. More... | |
Protected Member Functions | |
| renderHtmlErrorMessage (\Exception $exception) | |
| Render HTML error page. More... | |
| renderHtmlException (\Exception $exception) | |
| Render exception as HTML. More... | |
| renderHtmlExceptionOrError ($exception) | |
| Render exception or error as HTML. More... | |
| renderJsonErrorMessage (\Exception $exception) | |
| Render JSON error. More... | |
| renderXmlErrorMessage (\Exception $exception) | |
| Render XML error. More... | |
Protected Member Functions inherited from Slim\Handlers\AbstractError | |
| 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... | |
Private Member Functions | |
| createCdataSection ($content) | |
| Returns a CDATA section with the given content. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Slim\Handlers\AbstractError | |
| $displayErrorDetails | |
Protected Attributes inherited from Slim\Handlers\AbstractHandler | |
| $knownContentTypes | |
Default Slim application error handler.
It outputs the error message and diagnostic information in either JSON, XML, or HTML based on the Accept header.
| Slim\Handlers\Error::__invoke | ( | ServerRequestInterface | $request, |
| ResponseInterface | $response, | ||
| \Exception | $exception | ||
| ) |
Invoke error handler.
| ServerRequestInterface | $request | The most recent Request object |
| ResponseInterface | $response | The most recent Response object |
| \Exception | $exception | The caught Exception object |
| UnexpectedValueException |
Definition at line 34 of file Error.php.
References $contentType, $output, $response, Slim\Handlers\AbstractHandler\determineContentType(), Slim\Handlers\Error\renderHtmlErrorMessage(), Slim\Handlers\Error\renderJsonErrorMessage(), Slim\Handlers\Error\renderXmlErrorMessage(), and Slim\Handlers\AbstractError\writeToErrorLog().
Here is the call graph for this function:
|
private |
Returns a CDATA section with the given content.
| string | $content |
Definition at line 220 of file Error.php.
References sprintf.
Referenced by Slim\Handlers\Error\renderXmlErrorMessage().
Here is the caller graph for this function:
|
protected |
Render HTML error page.
| \Exception | $exception |
Definition at line 73 of file Error.php.
References $html, $output, $title, Slim\Handlers\Error\renderHtmlException(), Slim\Handlers\Error\renderHtmlExceptionOrError(), and sprintf.
Referenced by Slim\Handlers\Error\__invoke().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Render exception as HTML.
Provided for backwards compatibility; use renderHtmlExceptionOrError().
| \Exception | $exception |
Definition at line 112 of file Error.php.
References Slim\Handlers\Error\renderHtmlExceptionOrError().
Referenced by Slim\Handlers\Error\renderHtmlErrorMessage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Render exception or error as HTML.
| \Exception | \Error | $exception |
Definition at line 124 of file Error.php.
References $code, $file, $html, $message, and sprintf.
Referenced by Slim\Handlers\Error\renderHtmlErrorMessage(), and Slim\Handlers\Error\renderHtmlException().
Here is the caller graph for this function:
|
protected |
Render JSON error.
| \Exception | $exception |
Definition at line 163 of file Error.php.
References $error.
Referenced by Slim\Handlers\Error\__invoke().
Here is the caller graph for this function:
|
protected |
Render XML error.
| \Exception | $exception |
Definition at line 194 of file Error.php.
References $xml, and Slim\Handlers\Error\createCdataSection().
Referenced by Slim\Handlers\Error\__invoke().
Here is the call graph for this function:
Here is the caller graph for this function: