|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Catches an exception and converts it to a JSON response. More...
Inheritance diagram for Whoops\Handler\JsonResponseHandler:
Collaboration diagram for Whoops\Handler\JsonResponseHandler: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) | |
| handle () | |
| setRun (RunInterface $run) | |
| setException ($exception) | |
| setInspector (Inspector $inspector) | |
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().
Here is the caller graph for this function:| 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 Whoops\Handler\JsonResponseHandler\addTraceToOutput(), defined, Whoops\Handler\Handler\getInspector(), and Whoops\Handler\Handler\QUIT.
Here is the call graph for this function:| 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().