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';
 
An exception for terminatinating execution or to throw for unit testing.
Abstract implementation of a Handler.
const QUIT
The Handler has handled the Throwable in some way, and wishes to quit/stop execution.
Catches an exception and converts it to a JSON response.
setJsonApi($jsonApi=false)
Returns errors[[]] instead of error[] to be in compliance with the json:api spec.
addTraceToOutput($returnFrames=null)
Whoops - php errors for cool kids.