ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Default Slim application error handler. More...
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, Slim\Handlers\AbstractHandler\determineContentType(), Slim\Handlers\Error\renderHtmlErrorMessage(), Slim\Handlers\Error\renderJsonErrorMessage(), Slim\Handlers\Error\renderXmlErrorMessage(), Psr\Http\Message\ResponseInterface\withStatus(), and Slim\Handlers\AbstractError\writeToErrorLog().
|
private |
Returns a CDATA section with the given content.
string | $content |
Definition at line 220 of file Error.php.
Referenced by Slim\Handlers\Error\renderXmlErrorMessage().
|
protected |
Render HTML error page.
\Exception | $exception |
Definition at line 73 of file Error.php.
References $html, $output, $title, Slim\Handlers\Error\renderHtmlException(), and Slim\Handlers\Error\renderHtmlExceptionOrError().
Referenced by Slim\Handlers\Error\__invoke().
|
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().
|
protected |
Render exception or error as HTML.
\Exception | \Error | $exception |
Definition at line 124 of file Error.php.
References $code, $file, $html, and $message.
Referenced by Slim\Handlers\Error\renderHtmlErrorMessage(), and Slim\Handlers\Error\renderHtmlException().
|
protected |
Render JSON error.
\Exception | $exception |
Definition at line 163 of file Error.php.
References $error.
Referenced by Slim\Handlers\Error\__invoke().
|
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().