isConduit(); } public function handleRequestThrowable( AphrontRequest $request, $throwable) { $response = id(new ConduitAPIResponse()) ->setErrorCode(get_class($throwable)) ->setErrorInfo($throwable->getMessage()); return id(new AphrontJSONResponse()) ->setAddJSONShield(false) ->setContent($response->toDictionary()); } }