45 if (func_num_args() == 0) {
58 if ($this->jsonApi ===
true) {
61 Formatter::formatExceptionAsDataArray(
69 'error' => Formatter::formatExceptionAsDataArray(
76 echo json_encode(
$response, defined(
'JSON_PARTIAL_OUTPUT_ON_ERROR') ? JSON_PARTIAL_OUTPUT_ON_ERROR : 0);
86 return 'application/json';
Whoops - php errors for cool kids.
addTraceToOutput($returnFrames=null)
setJsonApi($jsonApi=false)
Returns errors[[]] instead of error[] to be in compliance with the json:api spec. ...
Catches an exception and converts it to a JSON response.
const QUIT
The Handler has handled the Throwable in some way, and wishes to quit/stop execution.
Abstract implementation of a Handler.