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