ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Catches an exception and converts it to a JSON response. More...
Public Member Functions | |
setJsonApi ($jsonApi=false) | |
Returns errors[[]] instead of error[] to be in compliance with the json:api spec. More... | |
addTraceToOutput ($returnFrames=null) | |
handle () | |
contentType () | |
Public Member Functions inherited from Whoops\Handler\Handler | |
setRun (RunInterface $run) | |
setInspector (Inspector $inspector) | |
setException ($exception) | |
Private Attributes | |
$returnFrames = false | |
$jsonApi = false | |
Additional Inherited Members | |
Data Fields inherited from Whoops\Handler\Handler | |
const | DONE = 0x10 |
const | LAST_HANDLER = 0x20 |
The Handler has handled the Throwable in some way, and wishes to skip any other Handler. More... | |
const | QUIT = 0x30 |
The Handler has handled the Throwable in some way, and wishes to quit/stop execution. More... | |
Protected Member Functions inherited from Whoops\Handler\Handler | |
getRun () | |
getInspector () | |
getException () | |
Catches an exception and converts it to a JSON response.
Additionally can also return exception frames for consumption by an API.
Definition at line 16 of file JsonResponseHandler.php.
Whoops\Handler\JsonResponseHandler::addTraceToOutput | ( | $returnFrames = null | ) |
bool | null | $returnFrames |
Definition at line 43 of file JsonResponseHandler.php.
References Whoops\Handler\JsonResponseHandler\$returnFrames.
Referenced by Whoops\Handler\JsonResponseHandler\handle().
Whoops\Handler\JsonResponseHandler::contentType | ( | ) |
Definition at line 84 of file JsonResponseHandler.php.
Whoops\Handler\JsonResponseHandler::handle | ( | ) |
Implements Whoops\Handler\HandlerInterface.
Definition at line 56 of file JsonResponseHandler.php.
References $response, Whoops\Handler\JsonResponseHandler\addTraceToOutput(), Whoops\Handler\Handler\getInspector(), and Whoops\Handler\Handler\QUIT.
Whoops\Handler\JsonResponseHandler::setJsonApi | ( | $jsonApi = false | ) |
Returns errors[[]] instead of error[] to be in compliance with the json:api spec.
bool | $jsonApi | Default is false |
Definition at line 33 of file JsonResponseHandler.php.
References Whoops\Handler\JsonResponseHandler\$jsonApi.
|
private |
Definition at line 26 of file JsonResponseHandler.php.
Referenced by Whoops\Handler\JsonResponseHandler\setJsonApi().
|
private |
Definition at line 21 of file JsonResponseHandler.php.
Referenced by Whoops\Handler\JsonResponseHandler\addTraceToOutput().