ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Catches an exception and converts it to a JSON response. More...
Public Member Functions | |
addTraceToOutput ($returnFrames=null) | |
onlyForAjaxRequests ($onlyForAjaxRequests=null) | |
handle () | |
![]() | |
setRun (Run $run) | |
setInspector (Inspector $inspector) | |
setException (Exception $exception) | |
Private Member Functions | |
isAjaxRequest () | |
Check, if possible, that this execution was triggered by an AJAX request. More... | |
Private Attributes | |
$returnFrames = false | |
$onlyForAjaxRequests = false | |
Additional Inherited Members | |
![]() | |
const | DONE = 0x10 |
Return constants that can be returned from Handler::handle to message the handler walker. More... | |
const | LAST_HANDLER = 0x20 |
const | QUIT = 0x30 |
![]() | |
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 32 of file JsonResponseHandler.php.
References Whoops\Handler\JsonResponseHandler\$returnFrames.
Referenced by Whoops\Handler\JsonResponseHandler\handle().
Whoops\Handler\JsonResponseHandler::handle | ( | ) |
Implements Whoops\Handler\HandlerInterface.
Definition at line 70 of file JsonResponseHandler.php.
References Whoops\Handler\JsonResponseHandler\addTraceToOutput(), Whoops\Util\Misc\canSendHeaders(), Whoops\Handler\Handler\DONE, Whoops\Handler\Handler\getInspector(), Whoops\Handler\JsonResponseHandler\isAjaxRequest(), Whoops\Handler\JsonResponseHandler\onlyForAjaxRequests(), and Whoops\Handler\Handler\QUIT.
|
private |
Check, if possible, that this execution was triggered by an AJAX request.
Definition at line 60 of file JsonResponseHandler.php.
References $_SERVER.
Referenced by Whoops\Handler\JsonResponseHandler\handle().
Whoops\Handler\JsonResponseHandler::onlyForAjaxRequests | ( | $onlyForAjaxRequests = null | ) |
bool | null | $onlyForAjaxRequests |
Definition at line 46 of file JsonResponseHandler.php.
References Whoops\Handler\JsonResponseHandler\$onlyForAjaxRequests.
Referenced by Whoops\Handler\JsonResponseHandler\handle().
|
private |
Definition at line 26 of file JsonResponseHandler.php.
Referenced by Whoops\Handler\JsonResponseHandler\onlyForAjaxRequests().
|
private |
Definition at line 21 of file JsonResponseHandler.php.
Referenced by Whoops\Handler\JsonResponseHandler\addTraceToOutput().